$$Excel-Macros$$ Re: Problem.Pls help

2009-11-15 Thread MKamal
There is no explanation in your worksheet!

-- 
--
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com

HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe


$$Excel-Macros$$ Re: PLEASE SOLVE THE PROBLEM IN FILE ATTACHED i have not got the proper solution. please show in excel file

2009-11-15 Thread MKamal
Hello,

I think i did some effort to solve your problem take a look  at this
post : 
http://groups.google.com/group/excel-macros/browse_thread/thread/29083fc9f3da2cdc
Hope this helps you

-- 
--
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com

HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe


$$Excel-Macros$$ Re: Clean - clear pivot cache Excel 2003

2009-11-13 Thread MKamal
Hello again!

This VBA code create 4 pivot table based on the same data cache;
This is exactly what you have asked !

Want:
a) vba routine to ensure that all pivots are based on the same pivot
cache
b) select one mother pivot cashe to be used by all pivots table

Regards

-- 
--
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com

HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe


$$Excel-Macros$$ Re: Clean - clear pivot cache Excel 2003

2009-11-12 Thread MKamal
hi arnsto ,

Well well well!  Hope you're familiar with vba ...

I've got this issue and I've solved it this way enjoy it :


Public Function Report0() As Integer
Report0 = 1
On Error GoTo errorhandler
Dim db As String
Dim sql As String
Dim pt as PivotTable
db = The database full path

sql = SELECT * FROM Report1


With ActiveWorkbook.PivotCaches.Add(SourceType:=xlExternal)
.Connection = ODBC;DSN=MS Access Database;DBQ=  db 
;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;
.CommandType = xlCmdSql
.CommandText = Array(sql)
.CreatePivotTable TableDestination:=ActiveSheet.Cells(15, 1),
TableName:=ReportTD1, DefaultVersion:=xlPivotTableVersion10
.CreatePivotTable TableDestination:=ActiveSheet.Cells(50, 1),
TableName:=ReportTD2, DefaultVersion:=xlPivotTableVersion10
.CreatePivotTable TableDestination:=ActiveSheet.Cells(100, 1),
TableName:=ReportTD3, DefaultVersion:=xlPivotTableVersion10
.CreatePivotTable TableDestination:=ActiveSheet.Cells(150, 1),
TableName:=ReportTD4, DefaultVersion:=xlPivotTableVersion10
End With

Set pt = app.ActiveSheet.PivotTables(ReportTD1)
bla bla bla

Set pt = app.ActiveSheet.PivotTables(ReportTD2)
bla bla bla

   bla bla bla
Exit Function
errorhandler:
 MsgBox Err.Description
End Function









On Nov 12, 1:19 pm, arnsto arn...@gmail.com wrote:
 Having a h u g e workbook with about 20 ws, and about 50 pivots.
 ( Several Pivots on same worksheet.)

 The datasource is placed in one sheet only, and reg. updated (exported
 from Acces 2003.) replacing al the data.

 Problem:
 - The file steals memory, and is slow to work with..
 - It seems that a lot of pivots are not sharing the same cashe. (I
 have learned that it is best to base new pivots on a mother pivot.
 Is that correct?
 - I do not want to rebuild all the pivots in the file..

 Want:
 a) vba routine to ensure that all pivots are based on the same pivot
 cache
 b) select one mother pivot cashe to be used by all pivots table

 Am I far out ? Suggestions?

 arnsto

-- 
--
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com

HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe


$$Excel-Macros$$ Re: PLEASE SOLVE THE PROBLEM IN FILE ATTACHED

2009-11-12 Thread MKamal
This will help you!
Enjoy it!

You didn't supply info about session 


Sub Unpivot()
Dim row As Long
Dim col As Long
'Where to put the unpivoted array
' Should be in another sheet but you've put it on the same ..?!.
Dim row_dest As Long
row_dest = 10
'To simplify the algo
Dim PROGRAM, ROLLNO, CENTRE, MEDIUM, SUBJECTX As String
'Begin with line 2
row = 2
PROGRAM = Cells(row, 1).Value
While (PROGRAM  )
ROLLNO = Cells(row, 2).Value
CENTRE = Cells(row, 3).Value
MEDIUM = Cells(row, 4).Value
col = 5
SUBJECTX = Cells(row, col).Value
While (SUBJECTX  )
Cells(row_dest, 1).Value = PROGRAM
Cells(row_dest, 2).Value = ROLLNO
Cells(row_dest, 3).Value = CENTRE
Cells(row_dest, 4).Value = MEDIUM
Cells(row_dest, 5).Value = SUBJECTX
row_dest = row_dest + 1
col = col + 1
SUBJECTX = Cells(row, col).Value
Wend
row = row + 1
PROGRAM = Cells(row, 1).Value
Wend
End Sub




On Nov 12, 2:30 pm, Jitender jitenderdev...@gmail.com wrote:
 DEAR SIR/GURUS

 PLEASE SOLVE THE PUZZLE IN FILE . TRANSPOSE IS NOT A GOOD SOLUTION

 THANKS
 --
 Jitender

  PROBLEM.xls
 22KViewDownload

-- 
--
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com

HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe