Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Pivot Table versus Combo Box

Hello, I have an issue that's killing me and I don't know what to do:
- I've created a Pivot Table that reads data from a Sheet in my Book.
- One of the fields is a Date field, formated Custom to "mmm/yyyy"
- I have 2 Combo Boxes (start and end of period) that are filled according
to my PT date fields, on the Worksheet_Activate procedu

For Each pvtitem In
PivotTables("PivotTend1").PivotFields("Mês").Pivo tItems
cbxInicio.AddItem (Format(pvtitem.Name, "mmm/yyyy"))
Next pvtitem

(... and same for the End period ...)

- Although my Dates are only from January-07 to December-08 in my PT, the
Combo Boxes shows me only January-09 to December-09 two times (because I had
it from 07 to 08)!

-Even if I try to use .AddItem.pvtitem.Name, the Combo shows my values
correctly, from 07 to 08, but when I try to use those on some calculation, I
find out that they're still beeing treated as 09 dates!

I don't know what to do to solve that, can someone please help?

Thanks.

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
Pivot table, IF function, calculated item versus calculated field NomadPurple Excel Discussion (Misc queries) 1 March 9th 10 03:17 PM
Macro menu item versus keyboard shortcut on pivot table TrevorM Excel Programming 0 February 21st 06 10:46 AM
VBA: Group Pivot Table and Combo Box THE_RAMONES[_2_] Excel Programming 0 January 5th 06 04:47 PM
controlling a pivot table using a combo box [email protected] Excel Programming 4 October 13th 05 01:33 AM
Pivot-table versus crosstab queries Razor[_2_] Excel Programming 1 August 4th 03 03:00 AM


All times are GMT +1. The time now is 12:57 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"