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

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
macro training course

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Macro training course

Macro training course

ResolvedVersion 2007

Rees has attended:
Excel Intermediate course
Excel Advanced course
Excel VBA Intro Intermediate course

Macro training course

Hi Guys,

I am refreshing myself with the practice material from the VBA Intermediate Introduction course and I came across a piece of code, called the "CopyHeadings", which would not work. I keep being given a "Runtime Error '9'" and told the "Subscript is out of range".

Is anybody able to help me out with this. I know the reason is probably simple, however, i think I need a fresh pair of eyes.

Specific code can be provided if required!

Thanks
Rees

RE: Macro training course

Hi Rees,

Thank you for your enquiry.

Firstly check the Variable names and the references to any sheet names and make sure there are no spelling mistakes in the sheet names.

If this doesn't resolve it could you please send me a copy of the spreadsheet today so I can have a look at the code.

Please send it to:

sk@stl-training.co.uk

Looking forward to receiving the file.

Regards

Simon

Excel tip:

Multiple Lines of Text in a Cell

As an alternative to the Text Wrapping facility, type a word or two, press Alt+Enter to get a new line, type more text, and continue the process for as many lines as you need. Enter as normal when you have finished.

The line break is not affected by changing the column width, as text wrapping. To remove this you must edit the cell and remove the invisible character and replace with a normal space.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.