+ Reply to Thread
Results 1 to 15 of 15

Unhide all columns and rows hidden

  1. #1
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Unhide all columns and rows hidden

    Hi
    I had this code and when I run it in macro in only unhide the columns hidden but not all the rows that is hidden in Sheet2.

    Thank you.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    I think I figure it out :o)

    Thanks.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Unhide all columns and rows hidden

    Please Login or Register  to view this content.
    Notice the red dots in front of Columns and Rows. If you don't use them in a With ..... End With structure you will still be refering to the Active sheet instead of Sheet2
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    Hi Bakerman,
    I tried to include Sheet3 and Sheet4. This is what I come out with but it looks like its not working.

    Please Login or Register  to view this content.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Unhide all columns and rows hidden

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    Hi Bakerman2
    I see what I missed :o)

    Thank you.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Unhide all columns and rows hidden

    You're welcome and thanks for rep+.

  8. #8
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    Hi Bakerman,
    Do you think you will be able to fix this for me? Thanks.

    Please Login or Register  to view this content.

  9. #9
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Unhide all columns and rows hidden

    Depends on what you are trying to achieve.

  10. #10
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    Hi
    I was trying to do a macro.

    Here is the scenario.

    The macro will print preview tje document (sheet2) for about 5 seconds and after 5 seconds then it will automayically close preview and will return to editing documents (sheet2).

    Thanks

  11. #11
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    Hi Bakerman

    In addition,
    This scenario is Without printing the document. Just “print preview” for 5 secs then Return to sheet2 documents.

    Thanks

  12. #12
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Unhide all columns and rows hidden

    Not possible.

    Code execution is suspended while in PrintPreview window so you will have to close manually.

  13. #13
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Unhide all columns and rows hidden

    I have searched for such a topic and didn't find answer. The code suspends till the preview closed manually ..
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  14. #14
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    Hi Bakerman2
    Ok :o( .......
    I thought so too but I just need to hear from the expert :o)

    Thank you again

  15. #15
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: Unhide all columns and rows hidden

    Thank you too YasserKhalil

+ 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] VBA to unhide hidden rows
    By Sam Capricci in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-14-2018, 09:09 AM
  2. 365 Excel - Cannot unhide hidden rows
    By jhmunn in forum Excel General
    Replies: 1
    Last Post: 09-26-2017, 10:41 AM
  3. How to unhide rows that are not hidden
    By amartino44 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2013, 08:09 PM
  4. Unhide then Hide the same hidden columns
    By garden_gnome in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2012, 11:23 AM
  5. Hidden Rows with VBA - Cannot Unhide
    By prairied0gg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2010, 01:17 AM
  6. Unhide Hidden Rows
    By bruce2444 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-08-2009, 09:53 PM
  7. How do I unhide columns previously hidden
    By Maureen in forum Excel General
    Replies: 3
    Last Post: 09-07-2005, 03: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