Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Enter Value based on Cell Color

I have a worksheet that is created by another team in my company.. I'm in the
process of setting up some VBA to transpose data, etc.. Get it ready to
upload into SQL Server.. However some infomration I can only get from the
color of the cell.. (i.e. if Cell Color is Green then its a "ABC", if its Red
its "DEF"). Code will open file instert an additional row and based on color
of cell below Fill in the appropiate Vendor

Worksheet layout
Initial
Row 1 - Color Coded Names which = particular vendor

Macro Steps
Step 1
Row 1 - Blank (inserted by VBA)
Row 2 - Color Coded Names which = particular vendor

Step 2
Row 1 = i.e B1 is blank however VBA will insert "ABC" because B2 = Green,
Same for C1 = Insert "DEF" because C2 = Red, until Cell in Row 2 have no
additional cell with colors moving left to right

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Enter Value based on Cell Color

Chip Pearson has some info on colors and how to use them:

http://www.cpearson.com/excel/colors.aspx



"THE_RAMONES" wrote in message
...
I have a worksheet that is created by another team in my company.. I'm in
the
process of setting up some VBA to transpose data, etc.. Get it ready to
upload into SQL Server.. However some infomration I can only get from the
color of the cell.. (i.e. if Cell Color is Green then its a "ABC", if its
Red
its "DEF"). Code will open file instert an additional row and based on
color
of cell below Fill in the appropiate Vendor

Worksheet layout
Initial
Row 1 - Color Coded Names which = particular vendor

Macro Steps
Step 1
Row 1 - Blank (inserted by VBA)
Row 2 - Color Coded Names which = particular vendor

Step 2
Row 1 = i.e B1 is blank however VBA will insert "ABC" because B2 = Green,
Same for C1 = Insert "DEF" because C2 = Red, until Cell in Row 2 have no
additional cell with colors moving left to right

Thanks



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
Macro to change color of tab based on color of cell Amie Excel Programming 5 June 23rd 08 08:45 PM
Change tab color based on current color of a cell MarkT Excel Discussion (Misc queries) 0 May 22nd 08 05:46 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
change fill color of a range of cells based on color of a cell? DarMelNel Excel Programming 0 March 2nd 06 06:35 PM
Browse Forms Controls and change TextBox color based on cell color StefanW Excel Programming 2 November 21st 04 07:06 PM


All times are GMT +1. The time now is 05:20 AM.

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"