+ Reply to Thread
Results 1 to 9 of 9

code for veryhide sheet and unhide another one

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    code for veryhide sheet and unhide another one

    Hello everyone
    I have two codes
    one code in sheet list that will copy data from sheet list to sheet mylist and also very hide sheet list
    another code in my list sheet that will when press unhide sheet list and veryhidde sheet mylist


    the code work well for one time but after that give error with the following line
    Please Login or Register  to view this content.
    what the wrong made itgive error after first time
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: code for veryhide sheet and unhide another one

    You cannot have all sheets hidden, one sheet has to be left unhidden

    You also cannot select a hidden sheet.

    Why do you want to mess around with xlSheetVeryHidden anyway?
    Last edited by davesexcel; 07-30-2020 at 03:38 PM.

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: code for veryhide sheet and unhide another one

    yes this what i need , i need move between sheet list and sheet mylist
    so one will be always unhide and other will be hide

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: code for veryhide sheet and unhide another one

    Then you need to unhide one sheet before hiding the other

  5. #5
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: code for veryhide sheet and unhide another one

    Thank you so much for your advice and notes
    its work well now with this modification
    Please Login or Register  to view this content.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: code for veryhide sheet and unhide another one

    Here is a cleaner code you can practice with, avoids having to select worksheets

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: code for veryhide sheet and unhide another one

    @davesexcel
    thank you for your cleaned code I used it but I add to it hide and unhide option because I think it's only for copy data if I understand correct
    the code as the follow
    Please Login or Register  to view this content.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: code for veryhide sheet and unhide another one

    The code will copy and paste to hidden worksheets you should not have to unhide them

  9. #9
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: code for veryhide sheet and unhide another one

    understand, good, thank you so 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. [SOLVED] VB Code .xlsm file with automatically hide and unhide sheet entities option
    By Sekars in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2019, 07:54 AM
  2. Replies: 16
    Last Post: 12-06-2018, 12:34 PM
  3. Vb code to hide/unhide rows based on entries on another sheet
    By tcrjmom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2015, 01:15 PM
  4. [SOLVED] Toggle Button to Unlock Sheet with Set Password and Unhide Rows and Relock Sheet
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2014, 06:16 PM
  5. [SOLVED] Sheet unhide VBA code quite jumpy
    By samdegg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 10:26 AM
  6. Need code to unhide a row when data is transferred between sheet by macro.
    By Dremzy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2014, 02:02 PM
  7. unhide sheet, copy data, hide sheet - screenupdate = false
    By titus.hanke in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2008, 02:46 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