LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Imitating Pivot table's context awareness

When you click inside of a pivot table, it's area lights up with a blue
border and the pivot table menu pops up. How does it know this? Is it
a control (like an embedded option button or combobox), or ... i'm not
sure what else there is.

Regardless, suppose I want the same thing in one of my XL apps. I would
like to have the spreadsheet know when I enter a special region,
changing the context menus, showing/hiding custom floating controlbars,
etc. However, I would like it to be general enough such that it is not
tied to any particular workbook (meaning, I assume, it must be in an XLA
or COM addin). And although I have an idea how to implement this, I
would like to know if anyone else has tried this, and if so, what
problems they encountered.

I assume that I would be able to do all of the contextual stuff just by
keeping a log of what the special regions are and trapping the selection
change event, but I have absolutely no idea to implement something like
the PivotTable's ability to display the text "Drop Data Items Here" on
top of the spreadsheet when active or handle problems like the user
inserting rows above the special region, thereby changing its address,
or the the pivot table denying the user the ability to delete rows
inside of it ("You canno change, move a part of, or insert cells in a
PivotTable report...").

Any help would be greatly appreciated.
 
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's Custom Calculated Fields FARAZ QURESHI Excel Discussion (Misc queries) 1 September 21st 07 09:07 AM
how do I extend an existing pivot table's range Chris Smith Excel Discussion (Misc queries) 4 June 15th 07 06:02 PM
Changing a pivot table's data range in Excel 2007 Ken W Excel Worksheet Functions 1 April 1st 07 03:45 PM
Accessing Pivot Table's Data in VBA spjoseph0511 Excel Programming 3 November 14th 03 03:15 AM
Accessing Pivot Table's Data spjoseph0511[_2_] Excel Programming 1 November 13th 03 07:36 PM


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