Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Deselect top row in pivot table

I'm trying to select part of a pivot table to paste into
cell AA1. I'm trying to select cell A4 through the end of
the range. Maybe because it's a pivot table it always
selects A3 to the end. A3 is where is identifies Sum of
xxxx. Is there a way that I can select A4 through the end
of the range? Or can I deselect a row after I've selected
it?

Thanks,
Alex

My code:

Range("A4").Select
Selection.End(xlToRight).Select
Selection.End(xlDown).Select


ActiveWorkbook.Names.Add Name:="Chart1",
RefersTo:="=Pivot!$A$4:last"
Worksheets("Pivot").Range("A4").CurrentRegion.Name
= "Chart1"
Set tbl = ActiveCell.CurrentRegion
tbl.Offset.Resize(tbl.Rows.Count, tbl.Columns.Count -
1).Select


Selection.Copy
'ActiveWindow.SmallScroll ToRight:=4
Range("AA1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
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
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Can't deselect drop down field in a pivot table [email protected] Excel Discussion (Misc queries) 1 August 31st 06 08:46 AM
Deselect All in a Pivot Table jpx Excel Discussion (Misc queries) 1 May 2nd 06 06:48 PM
ActiveChart.Deselect won't Deselect Mark Stephens Charts and Charting in Excel 2 June 16th 05 02:54 AM
DeSelect certain values in row pivot field Todd Huttenstine Excel Programming 0 May 20th 04 05:01 PM


All times are GMT +1. The time now is 09:20 PM.

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"