Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Matching selections on pivot tables

I am having a problem with some code. It worked fine, now I'm getting a
run-time error 1004. It's pretty simple, but I haven't been able to figure
out why it stopped working.

All it is supposed to do it match the selections from one pivot table to
another and clear several fields when the button is clicked.

Private Sub CommandButton2_Click()
Range("y1") = Range("i3")
Range("y2") = Range("i4")
Range("y3") = Range("i5")
Range("y4") = Range("i6")
Range("y5") = Range("i7")
Range("y6") = Range("i8")
Range("y7") = Range("i9")
Range("y8") = Range("i10")
Range("d6") = ""
Range("d7") = ""
Range("d8") = ""
Range("d9") = ""
Range("g6") = ""
Range("g10") = ""
Range("g9") = ""
Range("i41") = ""
Range("i42 ") = ""
Range("i43") = ""
Range("i40") = ""
Range("j36 ") = ""

End Sub


Columns I and Y are the page fields in two different pivot tables
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
Building pivot tables in Excel 2007 based on existing pivot tables? [email protected] Excel Discussion (Misc queries) 4 December 26th 07 08:05 PM
Question regarding pivot table selections nacholibre Excel Discussion (Misc queries) 3 October 23rd 06 06:19 PM
Pivot Tables - How can I "reset" the selections in "Row Field"? shadestreet Excel Discussion (Misc queries) 3 April 24th 06 06:29 PM
Pivot Tables: counting columns and matching Dave Peterson[_3_] Excel Programming 2 August 14th 04 01:21 PM
Pivot tables-controlling user interaction with pivot tables Sindhura Excel Programming 0 August 27th 03 02:10 PM


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