Home |
Search |
Today's Posts |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Test
MyText = "Hello" MsgBox MyText & vbcr & "World..!" End Sub "Andibevan" wrote in message ... | 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create a Random Variable | Excel Discussion (Misc queries) | |||
create new variable | Excel Worksheet Functions | |||
how to create a three variable chart. | Charts and Charting in Excel | |||
How do I create a one variable data table? | Excel Discussion (Misc queries) | |||
Excel VBA - MsgBox to display variable value? | Excel Programming |