Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default hide/unhide cell when clicking a cmdbutton


hide/unhide cell when clicking a cmdbutton

--------------------------------------------------------------------------------

hi! im a new member here.

just want to ask for help.

how can i hide/unhide cell when clicking a cmd button.

for example:

when i click the button "November" the data of november
will appear(b3:f25) but when i click again the button november,
it will hide the cell i just viewed.

thank you.[/COLOR

--
harder121
-----------------------------------------------------------------------
harder1216's Profile: http://www.excelforum.com/member.php...fo&userid=1516
View this thread: http://www.excelforum.com/showthread.php?threadid=26813

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default hide/unhide cell when clicking a cmdbutton

Hi

the problem is that you can't hide just cells - you need to hide either rows
or columns .. so if you're happy for columns B:F to be hidden when you click
your button then

sub ToggleNovember()

Columns("B:F").Select
if Selection.EntireColumn.Hidden = True then
Selection.EntireColumn.Hidden = False
else
Selection.EntireColumn.Hidden = True
end if

Range("A1").select

end sub


hope this helps
Cheers
JulieD

"harder1216" wrote in message
...

hide/unhide cell when clicking a cmdbutton

--------------------------------------------------------------------------------

hi! im a new member here.

just want to ask for help.

how can i hide/unhide cell when clicking a cmd button.

for example:

when i click the button "November" the data of november
will appear(b3:f25) but when i click again the button november,
it will hide the cell i just viewed.

thank you.



--
harder1216
------------------------------------------------------------------------
harder1216's Profile:
http://www.excelforum.com/member.php...o&userid=15161
View this thread: http://www.excelforum.com/showthread...hreadid=268137
[/color]


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide or unhide sheets based on cell billinr Excel Discussion (Misc queries) 2 July 13th 07 07:42 PM
CmdButton on worksheet1 missing pdavis Excel Discussion (Misc queries) 0 August 2nd 06 08:01 PM
Hide/unhide Jock W Excel Worksheet Functions 4 October 4th 05 05:02 PM
How do I unhide columns after clicking save? LeaCan Excel Worksheet Functions 1 January 29th 05 12:01 AM
How do I unhide columns after clicking save? LeaCan Excel Worksheet Functions 1 January 28th 05 08:15 PM


All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"