LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Todd1
 
Posts: n/a
Default Pivot Macro - select absolute value

I'm new to macros, but not excel.

I have a pivottable, and want to write a macro to select specific, absolute
names of people. I record the macro, and this is what it gives me:

ActiveCell.Offset(20, -12).Range("A8,A6,A3,A1").Select
ActiveCell.Offset(20, -12).Range("A1").Activate
Selection.Group

I want it to select a person's name instead, but the code is off, but I'm
close...yet so far. Example like this may help....

With ActiveSheet.PivotTables("PivotTable20").PivotField s("LO Name (f451)2")
.PivotItems("SMITH, JAMIE").Visible = False
.PivotItems("BENJAMIN, CHERYL").Visible = False
.PivotItems("TONIS, KEN").Visible = False

In the active pivottable, I want to select these three names and group them.






 
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
I can not select Pivot Table on my Data Menu Trooper's Wife Excel Discussion (Misc queries) 2 November 22nd 05 10:19 PM
macro sheet select Dave K Excel Discussion (Misc queries) 2 October 21st 05 10:08 PM
Pivot Table Report formatting - can't select Data Source Order Becky Excel Discussion (Misc queries) 1 August 4th 05 06:33 PM
Spinner macro for Pivot Tables. KipNowlin Excel Worksheet Functions 2 July 25th 05 06:11 AM
Macro, select Sheet "Number", NOT Sheet Name DAA Excel Worksheet Functions 4 November 30th 04 05:29 PM


All times are GMT +1. The time now is 04:14 AM.

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"