+ Reply to Thread
Results 1 to 3 of 3

Referring to Variable

  1. #1
    Registered User
    Join Date
    03-16-2006
    Posts
    81

    Referring to Variable

    I'm trying to work out how to refer to a Variable using another variable and text.

    I know if i was referring to a control in my userform it would be
    Please Login or Register  to view this content.
    Here is what i'm trying to do. Depending on what spin button i press (Brand or Product):
    Please Login or Register  to view this content.
    It doesn't like it when i try to assign the SpinName variable and text to CurrAttImp.

    Hope that makes sense.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Referring to Variable

    If you feel that people are slow in responding, consider what additional information you might provide, like where the control is, what kind of control it is, and in what procedure and module the code appears.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Referring to Variable

    You can't do what you are attempting. You would be better off using an array or an If..Else construct.
    Everyone who confuses correlation and causation ends up dead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1