Horse Racing Forum - PaceAdvantage.Com - Horse Racing Message Board

Go Back   Horse Racing Forum - PaceAdvantage.Com - Horse Racing Message Board > Off Topic > Off Topic - Computers


Reply
 
Thread Tools Rate Thread
Old 11-04-2015, 01:15 PM   #1
Tom
The Voice of Reason!
 
Tom's Avatar
 
Join Date: Mar 2001
Location: Canandaigua, New york
Posts: 112,887
Excel question

I have two button on a workbook. The to one hides certain columns from view, while the bottom one restores the full worksheet.

My ???? is, how do I set this up, and what is it called?
Hard to search for it when you have no idea what to call it.

Attached Images
File Type: png excel buttons.png (2.2 KB, 68 views)
__________________
Who does the Racing Form Detective like in this one?
Tom is online now   Reply With Quote Reply
Old 11-04-2015, 01:36 PM   #2
Saratoga_Mike
Veteran
 
Join Date: Mar 2009
Posts: 9,893
Click on the "Data" Tab at the top of Excel. Select "Group." I believe that's what you're looking for.
Saratoga_Mike is offline   Reply With Quote Reply
Old 11-04-2015, 02:03 PM   #3
Tom
The Voice of Reason!
 
Tom's Avatar
 
Join Date: Mar 2001
Location: Canandaigua, New york
Posts: 112,887
Bingo!

Thanks Mike.
__________________
Who does the Racing Form Detective like in this one?
Tom is online now   Reply With Quote Reply
Old 11-04-2015, 09:03 PM   #4
raybo
EXCEL with SUPERFECTAS
 
raybo's Avatar
 
Join Date: Mar 2004
Posts: 10,206
You could have also "recorded" a macro for the top button, by starting the record, manually selecting the columns to hide, using the "Ctrl" plus mouse click until all are selected, then right click any of the selected columns and select "Hide", then stop the record. Then assign that recorded macro to the top button by right clicking it and selecting "Assign macro" and selecting that macro. Then for the bottom button, you could have selected a column range that includes all the hidden columns, by clicking a column to the left of the 1st hidden column and holding the click while dragging the cursor to the right across the columns, to the right of the last hidden column, then right click any of those selected columns and select "Unhide", then assign that macro to the bottom button.

I find that most times it's just quicker and easier to record macros (if possible), by performing all the steps you need, manually, and then just assigning it to a button. You can always open the macro code window (by right clicking the button and selecting "Assign macro" and clicking "Edit") and modify the code by adding "Application.ScreenUpdating = False" before the body of the code, to speed up the macro by not visually showing all the separate steps while it's running, but rather only the start and finish of the macro. If you have to scroll during the record, all those scrolls will occupy lines in the code and will be shown visually as it runs, but you can go to the code and select those scrolling lines, right click those highlighted lines and select "Cut", so you wouldn't see the scrolling action, you'd just see the starting location and the ending location, much cleaner and faster running macro. Trying to find an option in the menu/ribbon that does exactly what you want can be time consuming (if even possible), unless you get lucky and find it quickly.

Of course, some actions that you may want to automate, can't be recorded, but must be hand written in the code window. That's a different ballgame.
__________________
Ray
Horseracing's like the stock market except you don't have to wait as long to go broke.

Excel Spreadsheet Handicapping Forum

Charter Member: Horseplayers Association of North America

Last edited by raybo; 11-04-2015 at 09:09 PM.
raybo is offline   Reply With Quote Reply
Reply





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

» Advertisement
» Current Polls
Wh deserves to be the favorite? (last 4 figures)
Powered by vBadvanced CMPS v3.2.3

All times are GMT -4. The time now is 06:01 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 1999 - 2023 -- PaceAdvantage.Com -- All Rights Reserved
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program
designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.