Hi folks!
This may sound silly, but I need to do something that I know how to do in FoxPro very easly but just can't seem to find the right syntax in VB...
I have a Select statement:
Select Case Worksheets("Total").Range("G2")
Case "Data 1"
m_Data = Worksheets("Data 1")
Here is the thing. I need to save in the variable m_Data, not the contents but the words "Worksheets("Data 1")", the reason? Simple, because later I need to invoque the contents of m_Data to be used like this:
Worksheets("Total").Range("B9").Value = m_Data.Range("D4")
In this case, the contents of m_Data have to be "converted" into something like this:
Worksheets("Total").Range("B9").Value = Worksheets("Data 1").Range("D4")
In FoxPro I use a "&" command to invoque a regular content in a variable that can be a reserved word, but just can't seem to find anything like that in VB...
Any help will be very welcomed!!!
Thanks in advance folks...
HudHwk
"Here comes the Hawk!!!"
This may sound silly, but I need to do something that I know how to do in FoxPro very easly but just can't seem to find the right syntax in VB...
I have a Select statement:
Select Case Worksheets("Total").Range("G2")
Case "Data 1"
m_Data = Worksheets("Data 1")
Here is the thing. I need to save in the variable m_Data, not the contents but the words "Worksheets("Data 1")", the reason? Simple, because later I need to invoque the contents of m_Data to be used like this:
Worksheets("Total").Range("B9").Value = m_Data.Range("D4")
In this case, the contents of m_Data have to be "converted" into something like this:
Worksheets("Total").Range("B9").Value = Worksheets("Data 1").Range("D4")
In FoxPro I use a "&" command to invoque a regular content in a variable that can be a reserved word, but just can't seem to find anything like that in VB...
Any help will be very welcomed!!!
Thanks in advance folks...
HudHwk
"Here comes the Hawk!!!"