Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

steps vba

ResolvedVersion 2007

Aquila has attended:
Excel VBA Intro Intermediate course

Steps in vba

Hi

I want a macro to copy steps of rows eg, every 5th row. How would I write this?

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.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

Remove spaces in a table

If you have a table that has too many space marks littered around, you can create a update query and use the trim function to get rid of any excess space marks

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.