ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   using pre-selected cells in my own chart macro (https://www.excelbanter.com/excel-programming/367812-using-pre-selected-cells-my-own-chart-macro.html)

gauss1976[_2_]

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



All times are GMT +1. The time now is 08:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com