Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KtM KtM is offline
external usenet poster
 
Posts: 13
Default Dynamic pivottables

Do While qCount < 5

Set NewSheet = Sheets.Add(Type:=xlWorksheet)


fir = firm & qCount & loppu

With ActiveSheet.QueryTables.Add(Connection:= _
"FINDER;file:///H:" & fir, Destination:=Range("A1"))
.Name = "Qval"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "4,5"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With



ActiveSheet.Name = apuFirma(laskuri) & "Q" & qCount



qCount = qCount + 1




Loop

Here is the working code also. Pivottables not pivotcaches, my bad on
former message.

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
PivotTables Gerry Verschuuren Excel Discussion (Misc queries) 4 October 25th 07 01:12 AM
PivotTables KerryK Excel Discussion (Misc queries) 2 October 8th 07 07:06 PM
New to Pivottables- need help coal_miner Charts and Charting in Excel 1 June 6th 05 06:48 PM
Drill Down in PivotTables doco Excel Discussion (Misc queries) 2 February 3rd 05 11:46 PM
PivotTables/VBA jngi[_3_] Excel Programming 2 September 24th 04 12:27 PM


All times are GMT +1. The time now is 12:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"