Trouble Using InputBox Method to Select Range from Other Sheets

P

pao_e_vinho

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top