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 create pivot table from large data file


I need to automate the creation of a pivot table from a csv file. I
create the pivot table once a week, and the number of records in the
csv file increases each time. I have not had much success in creating a
macro that includes a statement to go to the end of the data to
accomodate the increased number of rows. Can anyone assist with the
correct vba statement?


--
johnson748r
------------------------------------------------------------------------
johnson748r's Profile: http://www.excelforum.com/member.php...o&userid=37093
View this thread: http://www.excelforum.com/showthread...hreadid=569689

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Macro to create pivot table from large data file

Here is one good way to find the last row with data in it:
LastRow = Cells.Find(What:="*", After:=[A1], _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row

HTH

Charles_Chickering
"johnson748r"
wrote in message
...

I need to automate the creation of a pivot table from a csv file. I
create the pivot table once a week, and the number of records in the
csv file increases each time. I have not had much success in creating a
macro that includes a statement to go to the end of the data to
accomodate the increased number of rows. Can anyone assist with the
correct vba statement?


--
johnson748r
------------------------------------------------------------------------
johnson748r's Profile:
http://www.excelforum.com/member.php...o&userid=37093
View this thread: http://www.excelforum.com/showthread...hreadid=569689



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 can I create one column (stacked) from a large table of data.. Jacko Excel Worksheet Functions 1 January 17th 08 07:50 PM
Pivot Table - Create new file with ONLY certain data - Excel 2003 enna49 Excel Worksheet Functions 1 July 21st 07 05:00 AM
large data file problems - pivot table with vba [email protected] Excel Programming 0 July 29th 05 02:31 AM
large data file problems - pivot table with vba [email protected] Excel Programming 0 July 29th 05 02:30 AM
calculations in large data set and in pivot table Adam Nichols Excel Programming 0 July 13th 04 10:59 PM


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

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"