steps vba

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

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Steps in vba

Steps in vba

resolvedResolved · Medium Priority · Version 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:

Switchboard Startup

An option when you open your Access database that contains all of you tables, forms and queries is only the switchboard is displayed.

To achieve this, select Tools click on Startup. On the right hand side of the Startup screen you are able to select which form you want to open when you open you Access Database. Once you have selected this, there is a check box just below that says "Display Database Window", you need to uncheck this option. Then click ok.

Then when you close you Access database and re open it, the database should open with just the switchboard being shown


View all Access hints and tips


Server loaded in 0.08 secs.