Vandermiet
New member
- Local time
- Today, 19:04
- Joined
- Feb 20, 2012
- Messages
- 3
Hi,
I've been searching high and low but found nothing. I am struggling to implement the following idea:
I am using a pivot table built on a fairly simple select query to show the pricing and sales history of some products in a given period of time. The X axis represents the time (catalogue number) and the Y axis lists the products. The values of the table are some consolidated figures.
I'd like to create a macro which would read the catalogue number (columns) and product ID (rows) from a pivot table. Out of that I will generate a link to a site where I can see the layout of the catalogue page where the product was placed (this part is not a problem).
I have two questions:
1 - is it possible to read the column and row category value into a variable using VBA? My idea was to select any cell within the pivot table being an intersection of a row and column and trigger the macro getting a result similar to: varCatno = 201001 and varProdID = 123. If it's possible - how to achieve it?
2 - are there Events (or anything similar) available in Pivot Table - ideally my macro would be triggered by a double-click. I suppose the answer to this is negative, but a workaround solution would be to launch the macro by a hot-key, so this is a secondary issue.
Any help will be aprreciated!
Bests,
Lucas
I've been searching high and low but found nothing. I am struggling to implement the following idea:
I am using a pivot table built on a fairly simple select query to show the pricing and sales history of some products in a given period of time. The X axis represents the time (catalogue number) and the Y axis lists the products. The values of the table are some consolidated figures.
I'd like to create a macro which would read the catalogue number (columns) and product ID (rows) from a pivot table. Out of that I will generate a link to a site where I can see the layout of the catalogue page where the product was placed (this part is not a problem).
I have two questions:
1 - is it possible to read the column and row category value into a variable using VBA? My idea was to select any cell within the pivot table being an intersection of a row and column and trigger the macro getting a result similar to: varCatno = 201001 and varProdID = 123. If it's possible - how to achieve it?
2 - are there Events (or anything similar) available in Pivot Table - ideally my macro would be triggered by a double-click. I suppose the answer to this is negative, but a workaround solution would be to launch the macro by a hot-key, so this is a secondary issue.
Any help will be aprreciated!
Bests,
Lucas