View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
greg greg is offline
external usenet poster
 
Posts: 108
Default Variable Declaration

it is displaying or demonstrating,
how to create a variable. in this case a variant.
put a value to it.
and display it in a message box



"R Tanner" wrote in message
...
Hi,

I'm reading a book learning how to program and I'm walking through an
example talking about variable declaration. I understand what the
following procedure is doing, but I don't understand what the purpose
of it is. Can anyone help me to understand why I would do this?

Sub Create_Var()

Dim NewVar%
NewVar = "45"
MsgBox (NewVar)

End Sub

Thanks,