Open a sheet from other Excel file

  • Thread starter Thread starter SteM
  • Start date Start date
S

SteM

Hi there,
is there a way to open, by Excel vba code, another Excel file and naviagate
in the sheets and cells ?

From which other 'language' can i navigate in the cells of a Excel file ?

Thanks
 
YOU CAN USE AN INPUTBOX


Sub testa()

fileToOpen = Application _
.GetOpenFilename("Excel Files (*.xls), *.xls")
If fileToOpen <> False Then
Workbooks.Open Filename:=fileToOpen
Set myRange = Application.InputBox(prompt:="Sample", Type:=8)
End If


End Sub
 

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

Back
Top