+ Reply to Thread
Results 1 to 6 of 6

Display Worksheet Properties (visible/Hidden) on UserForm via Label Caption Dynamically

  1. #1
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Display Worksheet Properties (visible/Hidden) on UserForm via Label Caption Dynamically

    Hello Everyone,

    Reaching out for a little help. I’m trying to create a worksheet manager, and in my userform I’m trying to capture the number of sheet as well as the number visible and hidden sheets via Label.Caption and failing miserably. Below is the code I’m using. I can get the number of sheets, but can’t figure out how to count the number of visible and hidden sheets. I’ve included the workbook. Any help is appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Display Worksheet Properties (visible/Hidden) on UserForm via Label Caption Dynamicall

    Please Login or Register  to view this content.
    https://www.mrexcel.com/board/thread...sheets.550270/

  3. #3
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: Display Worksheet Properties (visible/Hidden) on UserForm via Label Caption Dynamicall

    Logit,

    Thank you for the speedy reply. This code is ideal. However, I'm not looking for a msgbox per se. I'd like to reflect the data via label captions on my UserForm. How can manipulate the code to do that.

    rb

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Display Worksheet Properties (visible/Hidden) on UserForm via Label Caption Dynamicall

    Paste in the UserForm :


    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: Display Worksheet Properties (visible/Hidden) on UserForm via Label Caption Dynamicall

    Logit,

    I've added it to the UserForm_Initialize() and it works just how i envisioned. thank you sooo much!!! now, i just have to figure out how to include protected and unprotected sheets, but i suppose i'll have save that for another post.

    rb

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Display Worksheet Properties (visible/Hidden) on UserForm via Label Caption Dynamicall

    Glad to help.

+ 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. Fill Label caption sourcing data from worksheet - Userform forloop
    By harin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2016, 05:15 PM
  2. Label Caption to display a Time elapsed counter
    By PHS8100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2015, 09:53 AM
  3. Properties for Label Caption when using VB Script to change.
    By Marie A. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2014, 08:23 AM
  4. [SOLVED] Label Caption = cell value In UserForm
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2014, 08:37 AM
  5. [SOLVED] Userform Label Caption - How To Set It To Display Military Time?
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-15-2013, 06:27 PM
  6. Display label caption
    By Nancy123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2010, 07:49 AM
  7. Why does VBA have Visible and Hidden properties?
    By davegugg in forum The Water Cooler
    Replies: 2
    Last Post: 08-17-2010, 05:36 AM

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