B
Bob
Dim CurrMenu as ???
Dim MenuNo As Integer
Dim Menu1ItemCount as Integer, Dim Menu2ItemCount as Integer
Menu1ItemCount = 1
Menu2ItemCount = 3
Menu3ItemCount = 5 etc
Do While MenuNo < whatever
MenuNo = 1
CurrMenu = "Menu" & Str(MenuNo) & "ItemCount" & ".Value"
MenuNo 1
Loop
What I'm trying to do is set CurrMenu to Menu1ItemCount (not the text
but the value of the variable). How do I do that? I've tried to put
words together so that it equals 'Menu1ItemCount.Value' but obviously
that does not work because it thinks its text, not the value 1 (the
value of the variable called Menu1ItemCount) as I'm trying to get.
Any suggestions?
Dim MenuNo As Integer
Dim Menu1ItemCount as Integer, Dim Menu2ItemCount as Integer
Menu1ItemCount = 1
Menu2ItemCount = 3
Menu3ItemCount = 5 etc
Do While MenuNo < whatever
MenuNo = 1
CurrMenu = "Menu" & Str(MenuNo) & "ItemCount" & ".Value"
MenuNo 1
Loop
What I'm trying to do is set CurrMenu to Menu1ItemCount (not the text
but the value of the variable). How do I do that? I've tried to put
words together so that it equals 'Menu1ItemCount.Value' but obviously
that does not work because it thinks its text, not the value 1 (the
value of the variable called Menu1ItemCount) as I'm trying to get.
Any suggestions?