Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default hide columns with a "+"

How can I hide and unhide columns with a "+" button? It means I can click the
"+" to hide columns, then click "+" to unhide the columns.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default hide columns with a "+"

How can I hide and unhide columns with a "+" button? It means I can
click the "+" to hide columns, then click "+" to unhide the columns.


Look in Excel's built-in Help for "Create an outline" and read the part
about "Outline the data manually."

It uses "+" to unhide and "-" to hide; hope that doesn't spoil it for you.

For the "detail columns" select those to be hidden. The column after that
can be left blank if there's no "summary" information to display there.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default hide columns with a "+"

hi
your post is a tad unclear but here is something i did years ago for our
engineering deparment. they wanted to hide/unhide a column that displayed
either metric or english measures. i "disguised" a command button as a column
header and put this code behide it. maybe you can use it as a template(?!?!?)
or maybe get ideas???
Private Sub CB1_Click()
If Columns("C:C").Hidden = True Then
Columns("C:C").Hidden = False
CB1.BackColor = RGB(0, 0, 255)
'CB1.ForeColor =
CB1.Caption = "Metric"
Columns("D:D").Hidden = True
Else
Columns("C:C").Hidden = True
Columns("D:D").Hidden = False
CB1.BackColor = RGB(245, 30, 5)
'CB1.ForeColor =
CB1.Caption = "English"
End If
End Sub

yeah, i know. not pretty but it did work. this is a directy copy/paste.

regards
FSt1

"hide columns with "+" button" wrote:

How can I hide and unhide columns with a "+" button? It means I can click the
"+" to hide columns, then click "+" to unhide the columns.

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
unable to hide columns -"can not shift objects off sheet" shows Pinaki Excel Worksheet Functions 2 August 4th 06 03:15 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 12:57 PM.

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

About Us

"It's about Microsoft Excel"