Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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
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
Macro to start when cell selected JackR Excel Discussion (Misc queries) 5 March 20th 06 04:01 PM
macro to compare multiple cells to determine value macrodummy Excel Worksheet Functions 2 October 9th 05 01:21 PM
Determine which button was selected ?? dcarr Excel Programming 4 October 27th 04 11:02 PM
Determining Start & End Points in Selected Cells Chris Hankin Excel Programming 4 June 28th 04 12:27 PM
Determine Selected Cells John Tripp[_2_] Excel Programming 2 July 31st 03 02:48 PM


All times are GMT +1. The time now is 10:32 AM.

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"