+ Reply to Thread
Results 1 to 6 of 6

Continual Changing Sheet Names

  1. #1
    Registered User
    Join Date
    11-19-2008
    Location
    Oxford, UK
    MS-Off Ver
    2003 (Work) / 2007 (Home)
    Posts
    60

    Continual Changing Sheet Names

    Hi,

    I want to capture data from another workbook each month where the sheet name that I need the data from changes each month.

    i.e. 0810, 0811, 0812, 0901

    Are possible sheet names.

    I've tried to build this unsuccessfully into the my code:-

    Please Login or Register  to view this content.
    To try and define the sheet name, and then refer to it:-

    Please Login or Register  to view this content.
    Could someone please help?

    Many Thanks
    Matt
    Last edited by SystemsAccountant; 11-25-2008 at 04:22 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Something like this might do it
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-19-2008
    Location
    Oxford, UK
    MS-Off Ver
    2003 (Work) / 2007 (Home)
    Posts
    60
    Thanks Roy.

    Unfortunately I can't work out what I need to do with your code in order for me to do what I would like to do.

    Both the year and month need to be input by the user. I have two cells on a sheet ("VAR") where the user does this.

    Therefore in the VB Code I want to select a sheet that is the name of these two cells added together.

    First cell = Month. Name is "Month No" (e.g. 10)
    Second cell = Year. Name is "CIRMSDYear" (e.g. 08)

    The sheet name I want to select in the other workbook is "0810".

    Regards
    Matt

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I think this is what you want

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-19-2008
    Location
    Oxford, UK
    MS-Off Ver
    2003 (Work) / 2007 (Home)
    Posts
    60
    Brilliant, thanks Roy.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Please mark the thread soklved & rate the answer(s)

+ 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