+ Reply to Thread
Results 1 to 4 of 4

Use multiple variables at the same time

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Use multiple variables at the same time

    Is it possible to use multiple variables to create one value? In my case, I'd like to use 2 InputBox commands to ask the user for a "Section" number and a "Page" number, then combine those two to create the sheet name (not add them, but display them as "Section""Page" in the sheet name).

    Is this even doable?

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Use multiple variables at the same time

    Something like this (it names the active sheet).
    Please Login or Register  to view this content.
    Post responsibly. Search for excelforum.com

  3. #3
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Use multiple variables at the same time

    Thank you. That's exactly what I wanted.

  4. #4
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Use multiple variables at the same time

    Okay, that part worked out great. Now, I've also got this line:

    Range("R30").Formula = (ActiveWorkbook.Sheets("WO Info").Range("WO").Value & suffix)

    The value "WO" is set from another sheet in the workbook. This script does set the value correctly when the sheet copies, but I would like to make it be able to change when that original "WO" value is changed on the other sheet. Seems like everything I try just sets the value instead of creating the formula. What am I missing?

    Thanks.

+ 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