View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
pao_e_vinho[_4_] pao_e_vinho[_4_] is offline
external usenet poster
 
Posts: 1
Default Trouble Using InputBox Method to Select Range from Other Sheets


TROUBLE USING INPUTBOX METHOD TO SELECT RANGE FROM OTHER SHEETS

Hi,

I need to select a range of cells from a second workbook via a InputBox
or similar.

I'm trying to do that with the following code:


Code:
--------------------
Sub InputBoxTest()
Dim MySelection As Range
Set MySelection = Application.InputBox(prompt:="Select a range of cells", Type:=8)
MySelection.Select
End Sub
--------------------


But I can't select a cell range if it is located in other workbook.
Can somenone point me to the right direction.

Thanks
P&V


--
pao_e_vinho
------------------------------------------------------------------------
pao_e_vinho's Profile: http://www.excelforum.com/member.php...o&userid=21360
View this thread: http://www.excelforum.com/showthread...hreadid=554915