Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Language independent Pivot settings

Hi

I am using the following code to set the PivotField in an existing Pivot
table:

Workbooks(filename).Sheets(sheetname).PivotTables( tablename)PivotFields(fieldname).CurrentPage = "(All)"

However the "(All)" only works in english versions of Excel. Is there a way
to set this field in a language independent way?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Language independent Pivot settings

Claude,

Not exactly what you want but this might help. When you form the pivot
table the default setting for that page field is ALL. Before you do anything
else store the that name in a variable:
strpgname =
PivotTables("PivotTable1").PivotFields("metric").C urrentPage.Name
Then use the variable to set the page to ALL whenever needed.
PivotTables("PivotTable1").PivotFields("METRIC").C urrentPage = strpgname
The strpgname variable should have the word for all in whatever language is
being used.

Mike


"Claude" wrote:

Hi

I am using the following code to set the PivotField in an existing Pivot
table:

Workbooks(filename).Sheets(sheetname).PivotTables( tablename)PivotFields(fieldname).CurrentPage = "(All)"

However the "(All)" only works in english versions of Excel. Is there a way
to set this field in a language independent way?

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
Different Language Settings... Trevor Williams Excel Worksheet Functions 5 May 6th 08 03:00 PM
Regional settings independent list separator in arrays Vlado Sveda Excel Worksheet Functions 3 January 9th 07 01:19 PM
How to write a language independent formula Jaime Stuardo Excel Programming 2 December 30th 05 12:57 PM
DDE and MS Office Language Settings DDE_User Excel Programming 0 May 6th 05 01:46 PM
Language settings jacob[_3_] Excel Programming 3 September 12th 03 01:48 PM


All times are GMT +1. The time now is 03:06 AM.

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

About Us

"It's about Microsoft Excel"