[AccessD] Manipulating Excel Cells

Hale, Jim Jim.Hale at FleetPride.com
Wed Feb 1 14:19:51 CST 2006


Glad you got it working. BTW if you want to "see" numbers go
<tools><options><general> and check R1C1 reference style. The spreadsheet
column headings will become numbers. 
Jim Hale

-----Original Message-----
From: John Colby [mailto:jwcolby at colbyconsulting.com]
Sent: Wednesday, February 01, 2006 12:41 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Manipulating Excel Cells


Jim,

When you look in a spreadsheet you do not "SEE" column numbers, you see
letters.  I have columns e through CM or something like that.  For some odd
reason Z is not used, az,bz etc.  No se por que.  

So what I was looking for (and found) was a syntax for using column letters
instead of the silly cell(31,29).  What column is 29?  What "number" is
column BA?  Why do we "see" a column letter but address the cell with 31,22?
And of course I know the answer to the last, so that they can be manipulated
with counters in code, but in this case I have a column LETTER, not a column
NUMBER.

worksheet.Range(strRange)

is the answer.  I can use a string "B3" using that syntax.

John W. Colby
www.ColbyConsulting.com 




***********************************************************************
The information transmitted is intended solely for the individual or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of or taking action in reliance upon this information by
persons or entities other than the intended recipient is prohibited.
If you have received this email in error please contact the sender and
delete the material from any computer. As a recipient of this email,
you are responsible for screening its contents and the contents of any
attachments for the presence of viruses. No liability is accepted for
any damages caused by any virus transmitted by this email.


More information about the AccessD mailing list