LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Create Function to display name of variable

Hi All,

I want to create a small function (for example called printvar) that when it
is called it prints the name of the variable that was passed to it in a
message box. There may well be an obvious way of doing this but I don't
know it.


E.g.

Sub Test
MyText = "Hello"

MsgBox PrintVar(MyText)

End Sub

The Result would then by "MyText" in a messagebox.

Any ideas?

Ta

Andi


 
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
Create a Random Variable [email protected] Excel Discussion (Misc queries) 3 August 25th 09 09:18 AM
create new variable Angie Excel Worksheet Functions 4 January 23rd 07 08:26 PM
how to create a three variable chart. [email protected] Charts and Charting in Excel 2 May 24th 06 12:28 AM
How do I create a one variable data table? prelll91 Excel Discussion (Misc queries) 0 February 27th 05 07:47 PM
Excel VBA - MsgBox to display variable value? BruceAtkinson[_5_] Excel Programming 2 June 4th 04 08:32 PM


All times are GMT +1. The time now is 12:27 PM.

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"