+ Reply to Thread
Results 1 to 2 of 2

Tab Title Macro

  1. #1
    Registered User
    Join Date
    10-14-2006
    Posts
    41

    Question Tab Title Macro

    Below is what I am using to indicate the name of my tab

    Please Login or Register  to view this content.
    It works great but in another area of the worksheet I have a macro to reference another worksheet in the same workbook and bring in it's values based on the tab name indicated in the adjacent cell. (the code is below):

    Please Login or Register  to view this content.
    However when the sheet title in "A1" has a dash "-" involved and the tab name indicates that "-" the macro will not run it does some weird things, is there a way in the macro for the tab name to change any "-" to a "." in the tab name but keep the "-" in the "A1"? just a question because the "." will work in the tab name but I need the "-" in the sheet title name, any suggestions? Thanks

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    You can try to use Replace instruction:
    Please Login or Register  to view this content.
    Regards,
    Antonio

+ 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