Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mike
 
Posts: n/a
Default Pivot tables and macros

i currently use macros to change some downloaded sales information.
unfortunately, the volume always changes and I cannot use a macro for
creaqting a Pivot table. When i select cell A1 and hit pivot tabel it
automatically selcts the range. In my macro it will only select the actual
range i recorded. IS there a way to go around that?

Thanks
Mike
  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Pivot tables and macros

You'll have to edit the macro to create a variable range (alt + F11 will
bring up the VB Editor). If, for example, your macro recorded the range as
"A1:D4200", you'll want to create a variable to capture the final row, then
use that variable in the range.
Dim FinalRow as long
FinalRow = Range("A65536").end(xlup).row
....
Then edit the range to read "A1:D" & FinalRow


"Mike" wrote:

i currently use macros to change some downloaded sales information.
unfortunately, the volume always changes and I cannot use a macro for
creaqting a Pivot table. When i select cell A1 and hit pivot tabel it
automatically selcts the range. In my macro it will only select the actual
range i recorded. IS there a way to go around that?

Thanks
Mike

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 secuire Sheet Same time Update the Pivot Table Michael H.M.Mikhail Excel Worksheet Functions 0 July 25th 05 08:18 AM
Spinner macro for Pivot Tables. KipNowlin Excel Worksheet Functions 2 July 25th 05 06:11 AM
Substitute for Pivot tables? DerbyJim1978 Excel Worksheet Functions 0 July 12th 05 05:31 PM
I am having trouble keeping numbers formatted in a Pivot Table Liana H Excel Discussion (Misc queries) 1 April 22nd 05 07:43 PM
What's the best way to learn Pivot Tables and using Macros in Exc. Shirley New Users to Excel 3 April 7th 05 12:47 PM


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