Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I used the record macro so I can programatically re-run getting external data
into a pivot table after clearing and deleting all the cells. The macro recorded explicitly to the workbook I was working in while recording. I'd like help with making my code more universal. How should I modify the following code to allow it to run on different workbooks? ..CreatePivotTable TableDestination:=" ' [Workbook Name.xls] Query Name ' ! R5C1", _ TableName:="PivotTable5", DefaultVersion:=xlPivotTableVersion10 and ActiveWindow.Visible = False Windows("Workbook Name.xls").Activate Range ("A2").Select Thanks, Lou Sanderson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Universal formulas for any given row | New Users to Excel | |||
Universal procedure for changes | Excel Programming | |||
Universal Macro | Excel Programming | |||
Need new idea for universal path | Excel Programming | |||
Need new idea for universal path | Excel Programming |