+ Reply to Thread
Results 1 to 5 of 5

vba hide event question

  1. #1
    Forum Contributor
    Join Date
    12-01-2022
    Location
    Rhodes,Greece
    MS-Off Ver
    office 2021
    Posts
    204

    vba hide event question

    Is it possible to hide a sheet in a workbook referencing to the sheet that we want to hide by its index number ?
    i know you can do it by its name but i couldnt find a way to do it by its index number
    thank you in advance

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: vba hide event question

    You will have to identify the index number, loop though the worksheets and return the id number when the name is known.
    And index number generally does not change but a sheet name can so that's the problem
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    12-01-2022
    Location
    Rhodes,Greece
    MS-Off Ver
    office 2021
    Posts
    204

    Re: vba hide event question

    Mr Keebellah
    thank you very much for your response.
    so you mean the only way to hide the sheet by its index number is to loop through?

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: vba hide event question

    Yes, because (as far as I can see it) the index number does not say anyhting about the sheet name.

  5. #5
    Forum Contributor
    Join Date
    12-01-2022
    Location
    Rhodes,Greece
    MS-Off Ver
    office 2021
    Posts
    204

    Re: vba hide event question

    Mr Keebellah
    thank you very much

+ 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. Hide save form before close event
    By Undo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2019, 09:26 AM
  2. [SOLVED] unload/hide Userform from OnComm Event
    By timmatthews in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2014, 09:47 AM
  3. How to hide preceding tab of worksheet with activate event
    By ExcelNewbeee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2012, 01:26 PM
  4. Hide and Unhide Sheets in Worksheet_Calculate() Event
    By NM079 in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 09-16-2011, 06:44 AM
  5. Display/hide buttons when event occurs
    By PRodgers4284 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2009, 06:43 AM
  6. [SOLVED] Hide Sheet using Workbook Open Event
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2005, 03:30 PM
  7. How to trap delete row event and hide column event?
    By Alan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2005, 12:06 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