+ Reply to Thread
Results 1 to 4 of 4

Page name from cell or vice versa

  1. #1
    Registered User
    Join Date
    11-07-2007
    Posts
    33

    Page name from cell or vice versa

    Hey guys,
    I am trying to create a production report that has a cover, and then many pages that the cover references. I want to be able to either fill in the corrisponding cell on the cover and the correct page gets named. Then I want a cell in the page to name itself after the Page. For example the cover would get typed to look like..

    Job 1
    Job 2
    Job 3

    Then the tabs would automatically get named Job 1 Job 2 Job 3

    I'm not sure if its possible, but any help is appreciated.

    p.s. Naming tabs and the cell fills in correctly works also, either way

  2. #2
    Registered User
    Join Date
    01-12-2004
    Location
    NY
    Posts
    92
    Audi,
    With a blank workbook open type your desire sheet names in cell A1, A2,... and so on

    1. Then Press Alt+F11 on your keyboard. You will open the Visual Basic Editor.
    2. Double click Sheet on on the Project properties (top right corner)
    3. On the Right side (the white space) paste the following VBA code

    Please Login or Register  to view this content.
    Courtesy of CPearson

    4. Close the VB Editor and Select your list
    5. Open the Visual Basic toolbar (View >Toolbars>Visual Basic)
    6. Run the Sub CreateSheetsFromList macro

    Note: The code tests whether a sheet already exists with the particular name, and won't create a new sheet if that name is already in use, but it doesn't test whether the name is valid for a new worksheet (i.e. funny characters "&","/", et al).

    Regards,
    nrage21

  3. #3
    Registered User
    Join Date
    11-07-2007
    Posts
    33
    nrage21,
    I tried what you suggested, I went to a worksheet I wanted named, copied the code into VB, when to my cover page and selected the cell that I wanted the worksheet to reference its name from and ran the program, but nothing happens when I enter a name into the cell. I'm am probably doing something wrong, I just dont know what. Sorry I dont know how to work with VB at all

    Oh and I'm not sure if it matters, but the Cover page has the job names in the B Column.
    Last edited by Audiguy82; 03-19-2008 at 06:17 PM.

  4. #4
    Registered User
    Join Date
    11-07-2007
    Posts
    33
    Oh wait...I got it! Thank you so much man
    Last edited by Audiguy82; 03-19-2008 at 06:24 PM.

+ 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