Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to read and write data to multiple sheets


Dear All,

I am beginning to learn & code in VBA.
Can anyone help me with this? How to write a macro to

1. read about 300,000 rows/records from multiple worksheets from the
same workbook.
2. for each record read, some processing/calculation is done based on
some fields in the record.
3. write back with the updated record with the computed fields to
another workbook with multiple worksheets.

(Assume each worksheet is to hold maximum of 60,000 records/row)

How would the code differ if I would were read from a text file,
compute and write to a workbook with multiple worksheets?

Thanks in advance
vvraj


--
vvraj
------------------------------------------------------------------------
vvraj's Profile: http://www.excelforum.com/member.php...o&userid=33100
View this thread: http://www.excelforum.com/showthread...hreadid=537977

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Macro to read and write data to multiple sheets

vvraj,
For that number of rows, would it not be easier to switch to a database
program ?

NickHK

"vvraj" wrote in
message ...

Dear All,

I am beginning to learn & code in VBA.
Can anyone help me with this? How to write a macro to

1. read about 300,000 rows/records from multiple worksheets from the
same workbook.
2. for each record read, some processing/calculation is done based on
some fields in the record.
3. write back with the updated record with the computed fields to
another workbook with multiple worksheets.

(Assume each worksheet is to hold maximum of 60,000 records/row)

How would the code differ if I would were read from a text file,
compute and write to a workbook with multiple worksheets?

Thanks in advance
vvraj


--
vvraj
------------------------------------------------------------------------
vvraj's Profile:

http://www.excelforum.com/member.php...o&userid=33100
View this thread: http://www.excelforum.com/showthread...hreadid=537977



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
compiling data from multiple Excel sheets - macro? Stephanie Mistretta Excel Worksheet Functions 2 April 23rd 08 11:44 AM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
How to write a macro to open a file read-only? Mark Seger Excel Programming 20 June 5th 05 05:31 PM
How to read a SQL Table into Excel change the data and write back into SQL Belinda Excel Programming 1 June 10th 04 10:18 AM
Read/Write data to/from text files from a spreadsheet. lothario[_37_] Excel Programming 8 November 2nd 03 03:10 PM


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