Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default getting a variable's name

Hello
I'm tired of writing debug code like:
debug.print "myValue = " & myValue

Is it possible to write a function to get a variable name and display it
with its value as above?

Thanks Phil
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default getting a variable's name

You can use the watch window in the VBE and step through the code.

You can put in a breakpoint.

See Excel VBA help for details.

--
Regards,
Tom Ogilvy

"Philipp" wrote in message
...
Hello
I'm tired of writing debug code like:
debug.print "myValue = " & myValue

Is it possible to write a function to get a variable name and display it
with its value as above?

Thanks Phil



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calcuate 6 variable's contribution towards a fixed sum??? Alexander Excel Discussion (Misc queries) 2 April 20th 10 09:46 AM
How to populate Label1.Caption with a variable's value Dave O Excel Discussion (Misc queries) 3 April 25th 08 03:20 PM
Return the Row of a Variable's location xjetjockey Excel Discussion (Misc queries) 1 December 22nd 06 11:52 PM


All times are GMT +1. The time now is 09:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"