+ Reply to Thread
Results 1 to 6 of 6

Visible sheets name to be captured expect two sheets

  1. #1
    Forum Contributor
    Join Date
    09-15-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    135

    Visible sheets name to be captured expect two sheets

    Hi All,

    i have a VBA code which will capture all the worksheet names in the specified range, so I have attached the excel sheet my question is the only visible sheet names to be captured. below code is working fine.but in that sheet i need to exclude the two visible sheets "Control" and "Summary". I have tried the code
    Please Login or Register  to view this content.
    but it doesn't work. Looking your assistance.


    Please Login or Register  to view this content.
    Thanks/Raju
    Attached Files Attached Files
    Last edited by rajuganapathy; 10-12-2019 at 05:14 AM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Visible sheets name to be captured expect two sheets

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    09-15-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Visible sheets name to be captured expect two sheets

    Hi mehmetcik,

    I have tried the same but still it's capturing the Control and Summary sheet in the Range("A10"). my concern is both of the sheets are "visible" sheets it shouldn't be captured while running the macro.

    Please refer the attached sheet.

    Thanks/Raju

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Visible sheets name to be captured expect two sheets

    Hello rajuganapathy,

    If Sheets1 and 2 are always going to be the first two Sheets, "Control" and "Summary" respectively in your Workbook, then you may use this Code below;

    Please Login or Register  to view this content.
    Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Visible sheets name to be captured expect two sheets

    Apologies

    There was a worse error that I missed. you did not define ws

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-15-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Visible sheets name to be captured expect two sheets

    Thank you so much mehmetcik... have a wonderful weekend .....

+ 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] Visible sheets name to be captured
    By rajuganapathy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2019, 10:59 AM
  2. [SOLVED] Excel VBA - check to see if sheets is visible AND within range of specific sheets
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2016, 02:01 PM
  3. show list of all sheets containing abc and then make visible sheets selected
    By andre1986 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-23-2016, 05:56 AM
  4. Replies: 4
    Last Post: 01-06-2014, 02:14 AM
  5. [SOLVED] All sheets date format to general expect master sheet
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-05-2012, 01:31 AM
  6. [SOLVED] Copy All Visible Sheets To New Workbook Excluding Specific Sheets
    By ezrizer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-19-2012, 02:19 PM
  7. Dialog Box to Select Sheets to Make Visible and Delete the Remaining Sheets
    By TEAM in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-23-2005, 04:59 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