Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Need Help Setting Cell Values

Hi all,

I have what should be a fairly easy question that I need some help with.
I'm using Excel 2003.

I'm parsing a file and reading the needed data into a worksheet.

I've created a Module to do the file parsing and the parsing works great.
All I need to do is get the data into a worksheet. I can't seem to figure
out how to do that.

What I want to do is something like this:
Sheet("nameOfSheet").Row(i).Column(1).Value = amt1
Sheet("nameOfSheet").Row(i).Column(2).Value = amt2

The lines are in a loop and the row value is being incremented by 1. So
when it's all done, i have however many rows and 2 columns of data.

I keep getting the following error:
Object doesn't support this property or method

I'm at a complete loss. Adding ThisWorkbook. doesn't solve anything.

Any help is greatly appreciated.

Thanks,
Jay
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Need Help Setting Cell Values

The syntax is a bit off - use this

Sheet("nameOfSheet").cells(i,2).Value = amt2

Good luck



--
www.alignment-systems.com


"Jay" wrote:

Hi all,

I have what should be a fairly easy question that I need some help with.
I'm using Excel 2003.

I'm parsing a file and reading the needed data into a worksheet.

I've created a Module to do the file parsing and the parsing works great.
All I need to do is get the data into a worksheet. I can't seem to figure
out how to do that.

What I want to do is something like this:
Sheet("nameOfSheet").Row(i).Column(1).Value = amt1
Sheet("nameOfSheet").Row(i).Column(2).Value = amt2

The lines are in a loop and the row value is being incremented by 1. So
when it's all done, i have however many rows and 2 columns of data.

I keep getting the following error:
Object doesn't support this property or method

I'm at a complete loss. Adding ThisWorkbook. doesn't solve anything.

Any help is greatly appreciated.

Thanks,
Jay

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
setting cell values based on a 3rd cell Bob Excel Worksheet Functions 4 March 30th 10 08:53 PM
Dynamically setting CELL COLORS based on TWO OTHER cell values Tom Excel Discussion (Misc queries) 3 February 22nd 09 07:34 PM
Setting values in a cell Stephen Excel Discussion (Misc queries) 3 July 10th 08 08:23 PM
Setting Excel Cell values using C# AmitCh Excel Programming 1 December 30th 04 06:40 AM
Need assist with setting cell values from an addin subroutine [email protected] Excel Programming 1 December 12th 04 01:52 PM


All times are GMT +1. The time now is 08:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"