Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel TableDestination As String?
I've recorded an Excel macro which successfully creates a new pivot
table on mySheet.xls. For example: ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:="YIS!R2C1:R15C26").CreatePivotTable TableDestination:="[mySheet.xls] YIS!R18C1", TableName:=PivotTable15, DefaultVersion:=xlPivotTableVersion10 I need to be able to dynamically change the TableDestination value from mySheet.xls to a string variable as my macro will be creating pivot tables across multiple workbooks. I've tried turning this into one big string using Chr$(34) for the double quotes but can't seem to get this working correctly. Any suggestions are welcomed! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change 3 letter text string to a number string | Excel Discussion (Misc queries) | |||
Replace Hyperlink Addresses Help 'Dim OldStr As String, NewStr As String | Excel Programming | |||
Importing Long String - String Manipulation (INVRPT) (EDI EANCOM 96a) | Excel Programming | |||
to search for a string and affect data if it finds the string? | Excel Worksheet Functions | |||
Create a formula into a String then assign string to a cell | Excel Programming |