Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default refer to cells by number

Hi,

I'm a newbie to excel automation and could do with some guidance. I'm
trying to set cell values using variables within office 2007 but the
only method I can find to set values is via "Range" - and I can only
appear to specify Range values if a column header is specified: eq. A2.

I don't seem to be able to reference "Cells", "Row" or "Column" directly

For example, I am currently having to use:
ExcelWorksheetobject.range("A1").value2 = "my value"

Any guidance would be appreciated.

Thanks
Neil

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default refer to cells by number

Columns(1).Cells.Value2 = 1
Fills column A

Rows(2).Cells.Value2 = 1
Fills row 2

Cells.Value2 = 2
Fills entire sheet

Mike F
"n3llyb0y" wrote in message
news:2006120618092116807-n3llyb0y@aolcom...
Hi,

I'm a newbie to excel automation and could do with some guidance. I'm
trying to set cell values using variables within office 2007 but the only
method I can find to set values is via "Range" - and I can only appear to
specify Range values if a column header is specified: eq. A2.

I don't seem to be able to reference "Cells", "Row" or "Column" directly

For example, I am currently having to use:
ExcelWorksheetobject.range("A1").value2 = "my value"

Any guidance would be appreciated.

Thanks
Neil



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
how to find cells that refer to data in other cells in excel Aman Excel Discussion (Misc queries) 8 December 2nd 07 10:02 PM
Worksheet function to refer to columns by number mcambrose Excel Discussion (Misc queries) 1 October 13th 06 05:28 PM
Using cells to refer to worksheets Rup1776 Excel Worksheet Functions 1 September 27th 06 09:36 AM
refer to worksheet by index number in formula Aaron Excel Programming 2 August 23rd 06 05:20 PM
How do I refer to a freeform name and number on a chart using VBA Raas Excel Programming 4 November 23rd 05 06:21 PM


All times are GMT +1. The time now is 08:47 PM.

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"