Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default target address

if a user chooses more than one cell;
is there a way to determine the extent of the range chosen, if it is more
than 1 row / column, which rows/columns are selected, etc?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default target address

Do you mean something like this Mark

Sub test()
MsgBox Selection.Cells.Count
MsgBox Selection.Rows.Count
MsgBox Selection.Columns.Count
MsgBox Selection.Address
End Sub



--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Mark Kubicki" wrote in message ...
if a user chooses more than one cell;
is there a way to determine the extent of the range chosen, if it is more
than 1 row / column, which rows/columns are selected, etc?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default target address

Selection.address with give the address of the area selected

selection.rows.count will give how many rows are selected etc.


"Mark Kubicki" wrote in message
...
if a user chooses more than one cell;
is there a way to determine the extent of the range chosen, if it is more
than 1 row / column, which rows/columns are selected, etc?




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
Target cell reference moves when target is cut and pasted Illya Teideman Excel Discussion (Misc queries) 5 May 31st 07 11:34 AM
Using Target.Address in Excel 98 Noemi Excel Discussion (Misc queries) 2 November 7th 05 01:36 PM
Target.Address syntax Coolboy55 Excel Worksheet Functions 3 August 23rd 05 12:23 AM
How do I import Office address book to Outlook Express address bo. snnorp Excel Discussion (Misc queries) 2 February 22nd 05 11:47 AM
LINKING Address cells from an EXCEL spreadsheet to fill MapQuest Address Info Duane S. Meyer Excel Programming 0 August 30th 03 12:16 AM


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