+ Reply to Thread
Results 1 to 5 of 5

Name Sheets According To Names on Column B and Hide or Unhide Based on Column C

  1. #1
    Registered User
    Join Date
    04-24-2019
    Location
    Bogota,Colombia
    MS-Off Ver
    2013
    Posts
    42

    Name Sheets According To Names on Column B and Hide or Unhide Based on Column C

    Hello Everyone,

    I would require a macro to name every sheet on the workbook based on the names given on column B and to hide each one or unhide each one, based on the values
    "YES" "NO" on Column C.

    I tried looping but I always get an error of some sort.

    I have attached a simple workbook showing what I mean.

    Thank you!
    Last edited by realbestpete; 02-14-2021 at 12:45 AM. Reason: SOLVED

  2. #2
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: Name Sheets According To Names on Column B and Hide or Unhide Based on Column C

    Hi,

    Question. How do you make sure that the sheet you are going to give the name is the actual sheet you want to name it?
    unless it dont matter you need al connection to make sure that sheet 'a' gets the name 'sheet1'
    Please be as complete as possible in your asking so it may save use all the time to rework the solution because you didn't give all the requirements. If you have a layout in mind please work it out first so we can adapt our solution to it. Thanks.
    If you have been helped, maybe you could click the *

  3. #3
    Registered User
    Join Date
    04-24-2019
    Location
    Bogota,Colombia
    MS-Off Ver
    2013
    Posts
    42

    Re: Name Sheets According To Names on Column B and Hide or Unhide Based on Column C

    Hey, I would use the order as reference, for example, the first sheet in order from left to right, would take the name on "B2", and the value on "C2" would apply to whether it is hidden or unhidden and so on! Thanks!

  4. #4
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: Name Sheets According To Names on Column B and Hide or Unhide Based on Column C

    Hi,

    its a bit dirty but it does work
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-24-2019
    Location
    Bogota,Colombia
    MS-Off Ver
    2013
    Posts
    42

    Re: Name Sheets According To Names on Column B and Hide or Unhide Based on Column C

    Thanks a lot Joske920, it does work! I appreciate it!
    Last edited by realbestpete; 02-14-2021 at 12:41 AM. Reason: [SOLVED]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need Help with Hide/Unhide Rows Based on Zero Value in Column
    By amyly2n in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-31-2019, 03:43 PM
  2. Column G has 7s or 8s in row 1->200 - hide/unhide based on which
    By HereComesTheBoom in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-02-2018, 05:26 AM
  3. Automatically hide/unhide rows based on column A value
    By c.bernardo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2017, 12:30 AM
  4. [SOLVED] VBA macro that hide and unhide column to respective rows based on first column value
    By janine6192 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2013, 06:21 PM
  5. Hide/unhide sheets based on user names and passwords
    By rama1209 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2011, 09:11 PM
  6. Hide or Unhide Column Based on Cell Value
    By ChrisR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2006, 06:10 PM
  7. Hide/Unhide column based on cell value
    By DRK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2005, 12:05 PM

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