justforgroups
New Member
- Joined
- Mar 10, 2010
- Messages
- 26
Hi,
I have this VBAwhich works fine for creating a pivot table from a sheet:
However I need to change the source to an external file which is a tab-delimited text file.
Any help please? Thanks.
I have this VBAwhich works fine for creating a pivot table from a sheet:
Code:
Set rngData = Worksheets(gs_sheet).Cells(gl_head_row, 1).Resize(gl_last_row, gl_last_col)
ActiveSheet.PivotTableWizard SourceType:=xlExternal, SourceData:= _
rngData, TableDestination:=Worksheets(lv_pivot).Cells(1, 1), TableName:="PivotTable1"
However I need to change the source to an external file which is a tab-delimited text file.
Any help please? Thanks.