Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Range selecting in non-active workbook

Hi,
Is it possible to allow the user to select a range in a workbook other than
the active one? A RefEdit control doesn't appear to let me do this. I want
to create a procedure that will allow the user to select a range in the
active workbook and compare it to a range they select in another workbook
(again of their own choosing). The purpose is to build an easy to use
utility to identify common entries in two different lists. Any suggestions?

Thanks,

SJC


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Range selecting in non-active workbook

dim rng as Range
on Error resume Next
set rng = Application.Inputbox("Select Range",type:=8)
On Error goto 0
if rng is nothing then
msgbox "failed to choose range, quitting"
exist sub
End if
msgbox "Chose " & rng.Address(0,0,xlA1,true)

--
Regards,
Tom Ogilvy


"SJC" wrote in message
...
Hi,
Is it possible to allow the user to select a range in a workbook other

than
the active one? A RefEdit control doesn't appear to let me do this. I want
to create a procedure that will allow the user to select a range in the
active workbook and compare it to a range they select in another workbook
(again of their own choosing). The purpose is to build an easy to use
utility to identify common entries in two different lists. Any

suggestions?

Thanks,

SJC




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Range selecting in non-active workbook

Thanks once again. I had tried using the inputbox method but when I tested
it I couldn't open the other file. I was trying to maximise the 2nd file
from the windows bar. Seeing as you suggested it I tried a bit harder and
found I had to minimise the active workbook first. I guess I should have
more confidence in myself! Many thanks.

SJC


"Tom Ogilvy" wrote in message
...
dim rng as Range
on Error resume Next
set rng = Application.Inputbox("Select Range",type:=8)
On Error goto 0
if rng is nothing then
msgbox "failed to choose range, quitting"
exist sub
End if
msgbox "Chose " & rng.Address(0,0,xlA1,true)

--
Regards,
Tom Ogilvy


"SJC" wrote in message
...
Hi,
Is it possible to allow the user to select a range in a workbook other

than
the active one? A RefEdit control doesn't appear to let me do this. I
want
to create a procedure that will allow the user to select a range in the
active workbook and compare it to a range they select in another workbook
(again of their own choosing). The purpose is to build an easy to use
utility to identify common entries in two different lists. Any

suggestions?

Thanks,

SJC






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Range selecting in non-active workbook

You should be able to use the window menu item (then select the workbook you
want) to navigate to the open workbook if they are maximized.

--
Regards,
Tom Ogilvy



"SJC" wrote in message
...
Thanks once again. I had tried using the inputbox method but when I tested
it I couldn't open the other file. I was trying to maximise the 2nd file
from the windows bar. Seeing as you suggested it I tried a bit harder and
found I had to minimise the active workbook first. I guess I should have
more confidence in myself! Many thanks.

SJC


"Tom Ogilvy" wrote in message
...
dim rng as Range
on Error resume Next
set rng = Application.Inputbox("Select Range",type:=8)
On Error goto 0
if rng is nothing then
msgbox "failed to choose range, quitting"
exist sub
End if
msgbox "Chose " & rng.Address(0,0,xlA1,true)

--
Regards,
Tom Ogilvy


"SJC" wrote in message
...
Hi,
Is it possible to allow the user to select a range in a workbook other

than
the active one? A RefEdit control doesn't appear to let me do this. I
want
to create a procedure that will allow the user to select a range in the
active workbook and compare it to a range they select in another

workbook
(again of their own choosing). The purpose is to build an easy to use
utility to identify common entries in two different lists. Any

suggestions?

Thanks,

SJC








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
Selecting cells on active row merry_fay Excel Discussion (Misc queries) 1 May 26th 09 05:30 PM
Selecting active area of sheet cfspahn24 Excel Discussion (Misc queries) 4 April 17th 06 12:19 PM
Selecting an active cell TimT Excel Programming 3 October 27th 05 07:08 PM
Selecting the active row el_grimley Excel Programming 2 August 5th 05 09:19 AM
Get range value active workbook on open add-in Ajtb Excel Programming 1 February 11th 05 01:52 PM


All times are GMT +1. The time now is 10:49 PM.

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"