Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA PROBLEM - Running Macros!
Hi,
Does anyone know whether I can run a macro LINE BY LINE. I want to look at a macro that I have written and work out at which point it is going wrong. IS THERE A TOOL TO RUN THE MACRO BIT BY BIT? Many thanks for your help! Sorry if this is a daft question - I have looked in the VBA help and can't find the answer. Cheers, Will --- Message posted from http://www.ExcelForum.com/ |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA PROBLEM - Running Macros!
Hi MrMerton
In the VBA editor put your curser in your macro. F5 run your complete macro F8 run your macro line by line -- Regards Ron de Bruin http://www.rondebruin.nl "MrMerton " wrote in message ... Hi, Does anyone know whether I can run a macro LINE BY LINE. I want to look at a macro that I have written and work out at which point it is going wrong. IS THERE A TOOL TO RUN THE MACRO BIT BY BIT? Many thanks for your help! Sorry if this is a daft question - I have looked in the VBA help and can't find the answer. Cheers, Will --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA PROBLEM - Running Macros!
I assume you are in the VBE (alt-F11). Make sure your cursor is in the
procedure you wish to test, then use F8 (menu Debugstep into) to do a line by line run. Also think about using breakpoints (using F9 to set and unset) to run normally up to a given point. Regards Paul "MrMerton " wrote in message ... Hi, Does anyone know whether I can run a macro LINE BY LINE. I want to look at a macro that I have written and work out at which point it is going wrong. IS THERE A TOOL TO RUN THE MACRO BIT BY BIT? Many thanks for your help! Sorry if this is a daft question - I have looked in the VBA help and can't find the answer. Cheers, Will --- Message posted from http://www.ExcelForum.com/ |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA PROBLEM - Running Macros!
Thank you so much for this advice. Something so simple has made my lif
so much easier! Thanks again. Wil -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Running 4 macros at once | Excel Discussion (Misc queries) | |||
Running Macros when on the LAN | Excel Discussion (Misc queries) | |||
Problem with running Macros | Excel Discussion (Misc queries) | |||
Problem running macros in Office/Excel 97 | Excel Programming | |||
HELP: Running two Macros, one before the other | Excel Programming |