ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do you execute single line of code? (https://www.excelbanter.com/excel-discussion-misc-queries/73694-how-do-you-execute-single-line-code.html)

honestlylion

how do you execute single line of code?
 

i am troubleshooting some code i wrote, and it would be very helpful to
know the command for running the code line-by-line so i can identify my
error more quickly. thanks.


--
honestlylion
------------------------------------------------------------------------
honestlylion's Profile: http://www.excelforum.com/member.php...o&userid=31674
View this thread: http://www.excelforum.com/showthread...hreadid=516195


Doug Kanter

how do you execute single line of code?
 
"honestlylion"
wrote in message
news:honestlylion.23qoza_1140794400.9802@excelforu m-nospam.com...

i am troubleshooting some code i wrote, and it would be very helpful to
know the command for running the code line-by-line so i can identify my
error more quickly. thanks.


While in the code editor, click on Help, start the help system, and search
for the word "Step". That'll tell you how, assuming Excel uses the same
terminology as every other programming language on earth.



Andrew Taylor

how do you execute single line of code?
 
Have a look at the Debug menu in the VBA window: it shows the
options and shortcuts, e.g. F8 to step through the code.
You can also make a line a Breakpoint (F9), which will make the
debugger stop when it reaches the line.


honestlylion wrote:
i am troubleshooting some code i wrote, and it would be very helpful to
know the command for running the code line-by-line so i can identify my
error more quickly. thanks.


--
honestlylion
------------------------------------------------------------------------
honestlylion's Profile: http://www.excelforum.com/member.php...o&userid=31674
View this thread: http://www.excelforum.com/showthread...hreadid=516195




All times are GMT +1. The time now is 12:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com