Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Steps in vba
Steps in vba
Resolved · Medium Priority · Version 2007
Steps in vba
HiI want a macro to copy steps of rows eg, every 5th row. How would I write this?
For upcoming training course dates see: Pricing & availability
RE: steps in vba
Hi Aquila, thanks for your query. Set up a loop down through your data (i.e. something like For NumRows = 1 To ....CurrentRegion.Rows.Count) and put "Step 5" at the end. Then within the loop put your copying code. That code will then only apply to every 5th row.Hope this helps, let me know how you get on.
Anthony
RE: steps in vba
yep thanks that works! Just had a look through our code last week, and saw it used there too. thanks again.
|
|
» Forum post: What's the cost of the software |



Course updates

