Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine currently selected cells at start of macro
Hi folks,
Macro to create a chart. Works fine, except I have to use an InputBox for the user to enter the range. I'd prefer for the macro to determine the currently selected cells at the start, and use that as the range. Any ideas? Thankx in advance, Piers |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine currently selected cells at start of macro
Hi there,
The Selection.Address will give you a reference to the current selection as a string. Shafiee. "Piers 2k" wrote in message ... Hi folks, Macro to create a chart. Works fine, except I have to use an InputBox for the user to enter the range. I'd prefer for the macro to determine the currently selected cells at the start, and use that as the range. Any ideas? Thankx in advance, Piers |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine currently selected cells at start of macro
Selection will give you the range itself
Set rng = Selection -- HTH RP (remove nothere from the email address if mailing direct) "Mohamed Shafiee" wrote in message ... Hi there, The Selection.Address will give you a reference to the current selection as a string. Shafiee. "Piers 2k" wrote in message ... Hi folks, Macro to create a chart. Works fine, except I have to use an InputBox for the user to enter the range. I'd prefer for the macro to determine the currently selected cells at the start, and use that as the range. Any ideas? Thankx in advance, Piers |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to start when cell selected | Excel Discussion (Misc queries) | |||
macro to compare multiple cells to determine value | Excel Worksheet Functions | |||
Determine which button was selected ?? | Excel Programming | |||
Determining Start & End Points in Selected Cells | Excel Programming | |||
Determine Selected Cells | Excel Programming |