Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ed ed is offline
external usenet poster
 
Posts: 3
Default how to reference selected cells in SourceData

How do I change the code at the bottom to reference all the selected
cells in the source table/ The number of cells changes every time.

In other words what syntax replaces R1C6:R392C8? to reference the
selected cells whatever they may be?

I am obviously not at all proficient in this endeavor. Thanks

================================================== =======
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _
"rents!R1C6:R392C8")
================================================== =======
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default how to reference selected cells in SourceData

Ed, take a look at "PivotTableWizard" in the VBA help.

HTH—Lonnie M.
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
function to reference value selected with autofilter cm Excel Worksheet Functions 2 September 16th 09 04:56 AM
Multiple cells or columns are selected instead of selected cell or Mikey Excel Discussion (Misc queries) 1 April 29th 09 09:48 PM
Cells are selected but aren't displayed as selected Nifty Excel Discussion (Misc queries) 2 September 17th 06 07:22 PM
Cells are selected but aren't displayed as selected Nifty Excel Worksheet Functions 0 September 17th 06 11:34 AM
Macro to take selected cells times a selected cell Craig Excel Programming 4 October 24th 05 12:54 AM


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