[AccessD] Manipulating Excel Cells

John Colby jwcolby at ColbyConsulting.com
Wed Feb 1 09:51:22 CST 2006


I'm baaaack.  ;-)

Here's the deal.  I am working with a spreadsheet that has columns of
systems and rows of documents.  Therefore each cell represents a
system-document.  BTW, this was a "source" for me to build a pair of tables
- tblSystem and tblDocument.  I then added a field to tblDocument called
SpreadsheetRow and a field to tblSystem called SpreadsheetColumn.  


We are tracking the receipt of these documents.  The client now wants to
see, back in his original spreadsheet, the "status" of a given system
document using colors to express the status - white = not assigned, red =
not received, yellow = partial receipt, green = received.

So... I have to go "poke colors" out into the spreadsheet.  I have
discovered the "area" property which has a color attribute.  What I need now
is a translation from the column LETTERS to a column number since for some
bizarre reason the columns have letter names but cells are referenced by
column numbers.  "Brain damaged children" as Bill Cosby would say.

Does anyone have code for manipulating cells by cell(intRowNumbers,
strColNames)?

John W. Colby
www.ColbyConsulting.com 





More information about the AccessD mailing list