Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default using pre-selected cells in my own chart macro


Question

I am writing a VB macro for excel to set up specific charts. All I nee
to know is how to select some cells in my sheet with the mouse (mor
than one cell) so when I run my chart macro the data it plots is th
values of the cells I have selected. This is trivial for one cell sinc
I can use the ActiveCell command but this does not work for more tha
one cell. I want to do this so I don't have to keep editing my macro t
place the cells I want to plot.

There must be a way of doing it since the built in chart function i
excel lets the user select cells before hand.

Any help would be much appreciated.

Gauss197

--
gauss197
-----------------------------------------------------------------------
gauss1976's Profile: http://www.excelforum.com/member.php...fo&userid=3658
View this thread: http://www.excelforum.com/showthread.php?threadid=56327

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
Creating a chart using selected cells from worksheet Zilla Excel Discussion (Misc queries) 2 September 22nd 06 05:55 PM
Macro to select cells and then new selection from selected cells Rewop Eilsel Excel Programming 0 June 6th 06 04:25 PM
Using VBA macro - how to just chart two selected columns RLExcelUserTS Excel Programming 0 March 27th 06 05:02 PM
Macro to take selected cells times a selected cell Craig Excel Programming 4 October 24th 05 12:54 AM
Macro to format selected cells BeSmart[_2_] Excel Programming 4 May 7th 04 01:28 PM


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