Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rcg rcg is offline
external usenet poster
 
Posts: 2
Default Selecting different multiple columns

Hi, I have a spreadsheet, which uses the colour of the first cell in a
column, to indicate the team that the column belongs to.

I would like to be able to select multiple columns (between B and AB)
based on the colorindex of this first cell.

For example, if the colorindex of Columns B, D, J and Z is 10, I would
like to hide all columns in the range ("B:AB") and then unhide columns
B, D, J and Z.

Example 2, if the team member in column B swaps places with the member
in Column P, then if the colorindex of Columns D, J, P and Z is 10, I
would like to hide all columns in the range ("B:AB") and then unhide
columns D, J, P and Z.

Example 3, if the colorindex of Columns F, K, L and Q is 15, I would
like to hide all columns in the range ("B:AB") and then unhide columns
F, K, L and Q.

Is there an easy way to achieve this.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rcg rcg is offline
external usenet poster
 
Posts: 2
Default Selecting different multiple columns

Problem Resolved.

I selected all the columns in the range I am working with and Hid them
I then looped through all the columns and if the colorindex matched,
selected that column and made it visible, then continued through the
loop selecting each single column and unhiding where applicable.


rcg wrote:
Hi, I have a spreadsheet, which uses the colour of the first cell in a
column, to indicate the team that the column belongs to.

I would like to be able to select multiple columns (between B and AB)
based on the colorindex of this first cell.

For example, if the colorindex of Columns B, D, J and Z is 10, I would
like to hide all columns in the range ("B:AB") and then unhide columns
B, D, J and Z.

Example 2, if the team member in column B swaps places with the member
in Column P, then if the colorindex of Columns D, J, P and Z is 10, I
would like to hide all columns in the range ("B:AB") and then unhide
columns D, J, P and Z.

Example 3, if the colorindex of Columns F, K, L and Q is 15, I would
like to hide all columns in the range ("B:AB") and then unhide columns
F, K, L and Q.

Is there an easy way to achieve this.


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
Multiple Columns to Single Columns [email protected] Excel Discussion (Misc queries) 3 September 7th 06 05:33 AM
linking multiple columns onto multiple worksheets talderman Excel Discussion (Misc queries) 3 August 23rd 06 02:00 AM
Selecting Multiple Columns in a Named Selection Griffithpt Excel Worksheet Functions 0 August 9th 06 10:54 PM
splitting 1 column of data into multiple columns CiceroCF Setting up and Configuration of Excel 1 March 25th 05 01:50 AM
HOW TO MATCH MULTIPLE COLUMNS WITH OR WITHOUT GAPS IN eXCEL ? hims Excel Worksheet Functions 2 October 27th 04 07:03 PM


All times are GMT +1. The time now is 09:42 AM.

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"