Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I use vba in Access with an Excel reference to create a workbook containing the data and generate a pivot table. The query is now generating 65K records which exceeds what Excel can hold. I have had no luck in getting the Excel reference to read data directly from the Acces table so I have decided to export the data to text and use the text file as the data source for the pivot table. Bil xlApp as Excel.Application Dim wb As Excel.Workbook Dim ws As Excel.Worksheet Dim pc As Excel.PivotCache set xlapp = creatobject("Excel.Application") Set xlwb = xlapp.workbooks.add Set xlws = xlwb.sheets(1) txtpath = "<path to data in a text file" Set pc = ActiveWorkbook.PivotCaches.Add(SourceType:=xlExter nal) pc.connection = ?????? after that how do I access the data in the text file? as it has field names but no tablename as such.... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you are using Access as your source, why do you need to create the Pivot
Table in Excel? Or, within Excel, have you considered refining your needs into several smaller pivot tables? -- Andy Wiggins FCCA www.BygSoftware.com Excel, Access and VBA Consultancy - "Bill" wrote in message ... Hello I use vba in Access with an Excel reference to create a workbook containing the data and generate a pivot table. The query is now generating 65K records which exceeds what Excel can hold. I have had no luck in getting the Excel reference to read data directly from the Acces table so I have decided to export the data to text and use the text file as the data source for the pivot table. Bil xlApp as Excel.Application Dim wb As Excel.Workbook Dim ws As Excel.Worksheet Dim pc As Excel.PivotCache set xlapp = creatobject("Excel.Application") Set xlwb = xlapp.workbooks.add Set xlws = xlwb.sheets(1) txtpath = "<path to data in a text file" Set pc = ActiveWorkbook.PivotCaches.Add(SourceType:=xlExter nal) pc.connection = ?????? after that how do I access the data in the text file? as it has field names but no tablename as such.... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, Andy
I need to use excel because the pivot table is better implemented than in Access and that is what the users want. I have no problems using Excel to draw the data from Access but geting Access to tell Excel to draw the Access data... well that seems to be a step too far so its text files I think "Andy Wiggins" wrote: If you are using Access as your source, why do you need to create the Pivot Table in Excel? Or, within Excel, have you considered refining your needs into several smaller pivot tables? -- Andy Wiggins FCCA www.BygSoftware.com Excel, Access and VBA Consultancy - "Bill" wrote in message ... Hello I use vba in Access with an Excel reference to create a workbook containing the data and generate a pivot table. The query is now generating 65K records which exceeds what Excel can hold. I have had no luck in getting the Excel reference to read data directly from the Acces table so I have decided to export the data to text and use the text file as the data source for the pivot table. Bil xlApp as Excel.Application Dim wb As Excel.Workbook Dim ws As Excel.Worksheet Dim pc As Excel.PivotCache set xlapp = creatobject("Excel.Application") Set xlwb = xlapp.workbooks.add Set xlws = xlwb.sheets(1) txtpath = "<path to data in a text file" Set pc = ActiveWorkbook.PivotCaches.Add(SourceType:=xlExter nal) pc.connection = ?????? after that how do I access the data in the text file? as it has field names but no tablename as such.... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to create pivot table from existing pivot table in excel 2007 | Excel Discussion (Misc queries) | |||
create pivot table from external csv file | Charts and Charting in Excel | |||
Pivot Table - Create new file with ONLY certain data - Excel 2003 | Excel Worksheet Functions | |||
Macro to create pivot table from large data file | Excel Programming | |||
How to create a Pivot table from text file with more than 65000 rows? | Excel Discussion (Misc queries) |