Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Open a sheet from other Excel file

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
--
SteM


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Open a sheet from other Excel file

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


"SteM" wrote:

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
--
SteM



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Open a sheet from other Excel file

Thanks,
but after the open, how can i refer to a Cell of that sheet ?
--
SteM

"Joel" ha scritto nel messaggio
...
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


"SteM" wrote:

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
--
SteM





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Open a sheet from other Excel file

Look at the code. Myrange is the seelcdted cell(s).

"SteM" wrote:

Thanks,
but after the open, how can i refer to a Cell of that sheet ?
--
SteM

"Joel" ha scritto nel messaggio
...
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


"SteM" wrote:

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
--
SteM






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
I can not open excel sheet by pressing file icon sss Excel Discussion (Misc queries) 1 May 13th 08 02:35 PM
how can I open an excel file everytime on certain sheet? Inas Excel Discussion (Misc queries) 1 June 7th 07 12:28 PM
Lookup on a sheet so that every time when file open it copes data from another file sheet Anna Excel Programming 1 December 19th 06 02:02 AM
open new microsoft excel sheet and found my last same file all ti. farid fouad Excel Worksheet Functions 1 March 10th 06 01:41 AM
I need a shortcut to make a excel file open to a specific sheet EAHRENS Excel Discussion (Misc queries) 9 December 6th 05 06:51 PM


All times are GMT +1. The time now is 02:53 AM.

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"