PC Review


Reply
Thread Tools Rate Thread

Associated fields coming into a spreadsheet

 
 
Robert
Guest
Posts: n/a
 
      10th May 2009
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Mail in Excel Spreadsheet with fields in spreadsheet Elton Law Microsoft Excel Programming 3 28th Apr 2009 02:39 AM
spreadsheet coming up read-only but only across network MattE Microsoft Excel Programming 1 1st Apr 2008 03:22 PM
Fields in my table not coming into my form =?Utf-8?B?RG9uIEp1YW4=?= Microsoft Access Forms 1 5th Mar 2007 11:07 PM
print spreadsheet with each coming day dated on it for 2006. =?Utf-8?B?TWVnYW4=?= Microsoft Excel Misc 20 13th Mar 2006 09:02 PM
Excel Spreadsheet should be 5 pgs., coming out 10 pgs. =?Utf-8?B?TGF1cmE=?= Microsoft Excel Misc 2 8th Mar 2006 06:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 PM.