+ Reply to Thread
Results 1 to 5 of 5

Toggle Hide/Unhide Cols & Toggle adj column width

  1. #1
    Registered User
    Join Date
    05-04-2014
    Location
    Perth, Australia
    MS-Off Ver
    MS365
    Posts
    35

    Toggle Hide/Unhide Cols & Toggle adj column width

    Hi - I have the below code that toggles hiding/unhiding cols G:R. How can I amend this code so it also adjusts the width of col V from 30, when G:R are hidden, to 10 when G:R is unhidden? Thanks

    HTML Code: 

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

    Re: Toggle Hide/Unhide Cols & Toggle adj column width

    A little iif() statement

    Please Login or Register  to view this content.

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

    Re: Toggle Hide/Unhide Cols & Toggle adj column width

    Try this
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Registered User
    Join Date
    05-04-2014
    Location
    Perth, Australia
    MS-Off Ver
    MS365
    Posts
    35

    Re: Toggle Hide/Unhide Cols & Toggle adj column width

    Thanks for your prompt replies guys, all sorted!

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

    Re: Toggle Hide/Unhide Cols & Toggle adj column width

    You're welcome. Glad we can offer some help
    Thanks a lot for the rep points

+ 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. toggle hide unhide rows, vba code
    By annazet in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-18-2017, 03:06 PM
  2. Toggle Button to hide unhide sheets
    By 95marine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2017, 04:46 PM
  3. [SOLVED] hide/unhide a range toggle
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2016, 03:54 PM
  4. [SOLVED] Macro to toggle between hide/unhide rows
    By fpt264 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2014, 04:30 PM
  5. macro - toggle hide/unhide row
    By taken in forum Excel Programming / VBA / Macros
    Replies: 72
    Last Post: 04-13-2013, 10:04 AM
  6. button to toggle hide/unhide columns
    By dbuff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2013, 07:56 PM
  7. Syntax of hide/unhide personal.xls toggle
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2005, 09: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