Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Can I expand & shrink columns?

Hello everyone,

I want to know it there is a way to pick 2 or 4 columns and have them expand
when I click on them.

So I want it where I can click on them and they expand to normal size and if
I click on them again the columns will shrink back to a smaller size.

I hope I'm making sense.

I don't want to have to widened the column by clicking in between each
column, I know how to do that.

I'm trying to create sort of a daily planner, so I want it to where the days
I'm not looking at are like shrunk to a smaller size

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Can I expand & shrink columns?

Right click sheet tabview codeinsert this.Modify to suit
Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
If Intersect(Target, Columns("D:F")) Is Nothing Then Exit Sub
tc = Target.Column
If Columns(tc).ColumnWidth < 15 Then
Columns(tc).ColumnWidth = 15
Else
Columns(tc).ColumnWidth = 5
End If
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"youngsequan" wrote in message
...
Hello everyone,

I want to know it there is a way to pick 2 or 4 columns and have them
expand
when I click on them.

So I want it where I can click on them and they expand to normal size and
if
I click on them again the columns will shrink back to a smaller size.

I hope I'm making sense.

I don't want to have to widened the column by clicking in between each
column, I know how to do that.

I'm trying to create sort of a daily planner, so I want it to where the
days
I'm not looking at are like shrunk to a smaller size


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
How to set a cell to expand to fit text in Excel not shrink fit Elisal Excel Worksheet Functions 1 December 4th 09 12:10 PM
Header Row with Option to Shrink/Expand Rows Beneath kippers Excel Worksheet Functions 2 June 22nd 09 12:50 PM
Expand columns valiantria Excel Worksheet Functions 2 January 11th 07 10:05 PM
Can rows/columns Automaticly Grow/Shrink? Brw Excel Discussion (Misc queries) 0 March 24th 06 02:29 PM
Shrink and expand a number of columns/rows balles Excel Worksheet Functions 1 February 17th 06 04:31 PM


All times are GMT +1. The time now is 08:58 PM.

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"