+ Reply to Thread
Results 1 to 5 of 5

Sheet reference based on inputbox value

  1. #1
    Registered User
    Join Date
    01-27-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sheet reference based on inputbox value

    Hi all

    I am very new to VBA and am a little bit stuck. Any help would be appreciated!

    I want to reference a worksheet using a value stored via an inputbox entry. Please see below macro.

    Please Login or Register  to view this content.
    Basically, I want to enter the sheet name into the inputbox (between 2001, 2002, 2003, etc), then the macro will select this sheet and paste the data.

    Thanks for your help.
    Last edited by ben10; 06-14-2013 at 01:45 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Sheet reference based on inputbox value

    Try like this...

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Sheet reference based on inputbox value

    From what I see, what you have should work?

  4. #4
    Registered User
    Join Date
    01-27-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sheet reference based on inputbox value

    That works very well. Thanks for your help Sixthsense!

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Sheet reference based on inputbox value

    Glad it helps you and thanks for the feedback

+ 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