#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sby sby is offline
external usenet poster
 
Posts: 7
Default Column changing

Hi

This is a big ask but does anyone know how to data in one column to show
different data.
What I want is to have a column with data and at the bottom have a button
which when you press it changes the data to something different (ie: a hidden
column) and when you click it again it put the original data back.
I want this so I do not have to have more columns on a sheet.

Thanks

SBY
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Column changing

Hi

Take a look at the Group and Outline function.
Mark any number of columns that you wish DataGroup and OutlineGroup
Thos columns will now be hidden, and you will see a "+" sign inserted above
the column headers.
Clicking the + sign will make them visible again, and the sign will change
to -. Clicking the - sign will hide them again.

--

Regards
Roger Govier

"sby" wrote in message
...
Hi

This is a big ask but does anyone know how to data in one column to show
different data.
What I want is to have a column with data and at the bottom have a button
which when you press it changes the data to something different (ie: a
hidden
column) and when you click it again it put the original data back.
I want this so I do not have to have more columns on a sheet.

Thanks

SBY


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sby sby is offline
external usenet poster
 
Posts: 7
Default Column changing

Thanks Roger

That works, but what I would like is for only one sheet to appear at a time.
I was thinking about using a button (spin or toggle). any ideas.

Regards


SBY

"Roger Govier" wrote:

Hi

Take a look at the Group and Outline function.
Mark any number of columns that you wish DataGroup and OutlineGroup
Thos columns will now be hidden, and you will see a "+" sign inserted above
the column headers.
Clicking the + sign will make them visible again, and the sign will change
to -. Clicking the - sign will hide them again.

--

Regards
Roger Govier

"sby" wrote in message
...
Hi

This is a big ask but does anyone know how to data in one column to show
different data.
What I want is to have a column with data and at the bottom have a button
which when you press it changes the data to something different (ie: a
hidden
column) and when you click it again it put the original data back.
I want this so I do not have to have more columns on a sheet.

Thanks

SBY



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Column changing

hi,
try this. it will hide one column while showing another and change the
button color and captions.
Private Sub CommandButton1_Click()
If Columns("C:C").Hidden = True Then
Columns("C:C").Hidden = False
CB1.BackColor = RGB(0, 0, 255)
'CB1.ForeColor =
CB1.Caption = "Numbers"
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 = "Letters"
End If
End Sub

edit to fit your data.
regards
FSt1
"sby" wrote:

Thanks Roger

That works, but what I would like is for only one sheet to appear at a time.
I was thinking about using a button (spin or toggle). any ideas.

Regards


SBY

"Roger Govier" wrote:

Hi

Take a look at the Group and Outline function.
Mark any number of columns that you wish DataGroup and OutlineGroup
Thos columns will now be hidden, and you will see a "+" sign inserted above
the column headers.
Clicking the + sign will make them visible again, and the sign will change
to -. Clicking the - sign will hide them again.

--

Regards
Roger Govier

"sby" wrote in message
...
Hi

This is a big ask but does anyone know how to data in one column to show
different data.
What I want is to have a column with data and at the bottom have a button
which when you press it changes the data to something different (ie: a
hidden
column) and when you click it again it put the original data back.
I want this so I do not have to have more columns on a sheet.

Thanks

SBY



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
Changing the format of a column MEAD5432 Excel Discussion (Misc queries) 2 May 15th 07 06:11 PM
Changing a column name computer_help Excel Discussion (Misc queries) 1 May 3rd 06 06:59 PM
Changing a column to a row willyb Excel Discussion (Misc queries) 4 December 26th 05 09:01 PM
Changing the Helper Column apples72 Excel Discussion (Misc queries) 12 November 13th 05 10:22 PM
CHANGING THE COLUMN HEADERS FROM ABC.. TO 123.. ANNE V Excel Discussion (Misc queries) 4 September 16th 05 08:30 AM


All times are GMT +1. The time now is 08: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"