Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need a routine that does the following:
1. MsgBox tells user to define a range by highlighting an area. 2. User clicks OK when done highlighting. 3. VBA saves and names the range. Can someone steer me in the right direction? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Arts
a very basic example, but somewhere to start: Sub SelectRange() Dim myRange As Range Set myRange = Application.InputBox("Please select a range", _ "Range Selection", _ Range("A1:B2").Address, , , , , _ 8) myRange.Select End Sub Regards Trevor " wrote in message ... I need a routine that does the following: 1. MsgBox tells user to define a range by highlighting an area. 2. User clicks OK when done highlighting. 3. VBA saves and names the range. Can someone steer me in the right direction? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() -----Original Message----- Arts a very basic example, but somewhere to start: Sub SelectRange() Dim myRange As Range Set myRange = Application.InputBox("Please select a range", _ "Range Selection", _ Range("A1:B2").Address, , , , , _ 8) myRange.Select End Sub Regards Trevor " wrote in message ... I need a routine that does the following: 1. MsgBox tells user to define a range by highlighting an area. 2. User clicks OK when done highlighting. 3. VBA saves and names the range. Can someone steer me in the right direction? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel graph 3 sets of data. 2 sets as lines 1 as column? | Charts and Charting in Excel | |||
User-defined range for graph | Excel Discussion (Misc queries) | |||
Relation betwn 2 sets of data, user to input one, sheet returns ot | Excel Worksheet Functions | |||
for SUMIF function, how do I use 2 sets of range & criteria | Excel Worksheet Functions | |||
How do I check repeating sets of number in a range | Excel Worksheet Functions |