Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a Range object in .Net

How do I programatically define a range?

I writing information to the upper left of a rectangle at
cell "A4" and a range defined as:

xlRange = xlSheet.Range("A4")

Next I add information to cells by moving to the right
one cell, until I am done a 'row' of data. Then I go
back to the "A" column, row+1 and add data to more cells
as follows:

for i = 0 to 10
for j = 0 to 10
xlRange.Offset(i, j) = i.tostring() + ", " +
j.tostring
next j
next i


Once I am finished, I want to format the 'range' of cells
I jusst worked on using a statement something like (this
is where I need help)

myRange.SetRange (xlRange, xlRange.offset(i,j))
'myRange is ("A4:K11")

* Office XP Professional
* Windows XP Professional
* .Net v. 1.1

Gary

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
Creating Excel Object From C# Jim Heavey Excel Discussion (Misc queries) 0 January 17th 06 03:02 PM
Creating a picture/object David Rivera Excel Discussion (Misc queries) 1 July 16th 05 12:35 AM
Range object to Array object conversion Myrna Larson[_2_] Excel Programming 1 August 1st 03 02:27 AM
Range object to Array object conversion Alan Beban[_3_] Excel Programming 0 August 1st 03 01:24 AM
Range object to Array object conversion Tom Ogilvy Excel Programming 0 August 1st 03 12:16 AM


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