+ Reply to Thread
Results 1 to 4 of 4

Naming Worksheet after cell values

  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    Singapore
    MS-Off Ver
    2002
    Posts
    71

    Naming Worksheet after cell values

    I was trying to rename the worksheet. using a cell value,A1. For example , if the cell value is Earning, the worksheet will be named as Earning.

    However I would like to include the location before the name, Earning. For example, in the cell value,A2 TK. I would like to rename the worksheet as TK_Earnings.

    So the name of the sheet will be CellvalueA1_CellvalueA2.

    How can I amend the code to obtain that? Thanks

    Please Login or Register  to view this content.
    Last edited by kaffal; 03-08-2009 at 09:11 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Naming Worksheet after cell values

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-17-2008
    Location
    Singapore
    MS-Off Ver
    2002
    Posts
    71

    Re: Naming Worksheet after cell values

    Hi, I guess that will work if both the cell value are from same worksheet.

    In my case, from worksheet name Cellvalue1_Cellvalue2,
    cellvalue1 is extract from current workbook, cell D3 , while cellvalue2 is extract from the cell A1 in the other workbook.

    I have attached the macro I am using

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Naming Worksheet after cell values

    I don't do mind reading on Sundays. If you wanted the cell references from different workbooks you should have said.

    Please Login or Register  to view this content.

+ 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