variable in excel
Hi,
Here is another way. You can pass the variable as an argument as follows.
Sub Macro1()
Dim sheet_name As String
sheet_name = "Measurement 1"
Call Looping(sheet_name)
Call Positifing(sheet_name)
End Sub
Sub Looping(ByVal Sh_Name)
MsgBox Sh_Name
End Sub
Sub Positifing(ByVal Sh_Name)
MsgBox Sh_Name
End Sub
Regards,
Colo
"anang" wrote in message
om...
I have little problem with my macro. How to assign the value of the
variable to other macro which I call in main macro.
Sub Macro1()
sheet_name = "Measurement 1"
Call Looping
Call Positifing
End Sub
I have "sheet_name" variable inside the Looping and Positifing macros
.
|