Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Associated fields coming into a spreadsheet

I am creating an Excel spreadsheet with vba code in an Access database.
There are text values that go into the cells of the spreadsheet. Each value
has a number associated with it that I want to use to set the color of the
cell but which does not appear in the spreadsheet. How can I associate a
formatting with a cell?

Example:

Value/code

ABCDE/1
FGHIJK/2
LMNOP/1
QRSTU/1
VWXYZ/3

codes
1 - red
2 - blue
3 - green

In the spreadsheet, in the cell with ABCDE, the color of the cell should be
red. For FGHIJK, the color of the cell is blue. Etc..

Obviously we can't look up the color without the code. Any suggestions on
how to do this? The best way I've come up with is to use a recordset or an
array in the Access program.

Robert


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
Send Mail in Excel Spreadsheet with fields in spreadsheet Elton Law[_2_] Excel Programming 3 April 28th 09 02:39 AM
spreadsheet coming up read-only but only across network MattE Excel Programming 1 April 1st 08 03:22 PM
appending fields from another spreadsheet eliyahuz Excel Discussion (Misc queries) 3 November 5th 07 11:42 PM
print spreadsheet with each coming day dated on it for 2006. Megan Excel Discussion (Misc queries) 20 March 13th 06 09:02 PM
Excel Spreadsheet should be 5 pgs., coming out 10 pgs. Laura Excel Discussion (Misc queries) 2 March 8th 06 06:57 PM


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