Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

select range and put range address in variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tombates@city-net.com - 25 Jan 2006 00:25 GMT
Through a command button in a user form, I want to ask a user to select
a group of cells(range).  The user selects the cells.  I would like to
retrieve the address of that range and place it in a variable.
Mary
Jim Thomlinson - 25 Jan 2006 00:42 GMT
Try the RefEdit Control. It should be one of the standard controls in you VBA
toolbox. It is used for selecting ranges...
Signature

HTH...

Jim Thomlinson

> Through a command button in a user form, I want to ask a user to select
> a group of cells(range).  The user selects the cells.  I would like to
> retrieve the address of that range and place it in a variable.
> Mary
N10 - 25 Jan 2006 01:28 GMT
Hi
Also this might help you

sub Example ()

   Dim task As Range
   Dim str As String

   Range("a1:c4").Select ' for example
   Set task = Selection
   str = task.Address
   MsgBox ("TASK= ") & str

End Sub

> Try the RefEdit Control. It should be one of the standard controls in you
> VBA
[quoted text clipped - 4 lines]
>> retrieve the address of that range and place it in a variable.
>> Mary
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.