PC Review


Reply
Thread Tools Rate Thread

added a range of data

 
 
cartoper@gmail.com
Guest
Posts: n/a
 
      19th Jan 2007
I am working in VB.Net. I have a collection of objects that need to be
entered into a excel spreadsheet. Each object will contain three
values, the values will be going into column A thru C. the number of
objects is unknown. Here it is in suedo code:

dim row as ???? = row 2 of the excel spreadsheet
for each obj as MyObject in coll
row.column["A"] obj.FirstValue
row.column["B"] obj.SecondValue
row.column["C"] obj.ThirdValue
row = the next row in the excel spread sheet
Next

How do I do this in either VBA or VB.Net? I would prefer that the
column not be absolute, because I need to do this type of thing in a
number of places. Also, I will need to know what the last row was
after the for each so that other data can be placed under it. Thanks
for the help!

 
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
subtract a range from an added range Marge Microsoft Excel Misc 2 20th Nov 2008 10:09 PM
Can you dynamically expand the time range to the series data added Rubbs Microsoft Excel Charting 2 5th Dec 2007 04:06 PM
seeking help on how to automatically shift an average range as new data is added the_cagey_one@excite.com Microsoft Excel Misc 2 30th Aug 2007 05:59 PM
repost: seeking help on how to automatically shift an average range as new data is added the_cagey_one@excite.com Microsoft Excel Misc 0 30th Aug 2007 02:36 PM
named range, data validation: list non-selected items, and new added items KR Microsoft Excel Misc 1 24th Jun 2005 05:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:06 AM.