Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Open xls file from other xls-file in same session

Hi all,
I've an excel-macro (in a Excel-file, say "A") which create a new excel-file
(say "B"); at end of macro (in file A) I open new file (B) created with:
shell(path_xls & " " & new_xlsfile)

where new_xlsfile contains path and name of my new xls file, and path_xls is
like:
C:\Programmi\MicrosoftOffice2003\Office11\excel.ex e

All works fine, but new file is open in a "new excel session", so isn't
possible use function like "copy or move worksheet" from new file (B) to
other opened files (for ex, to A).

My question: there is a way to open my new file (B) in same "excel-session"
of caller-file (B)?
Thanks in advance
JFM


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Open xls file from other xls-file in same session

solved with:
workbooks.open(new_xlsfile)



"Andrea" ha scritto nel messaggio
.. .
Hi all,
I've an excel-macro (in a Excel-file, say "A") which create a new

excel-file
(say "B"); at end of macro (in file A) I open new file (B) created with:
shell(path_xls & " " & new_xlsfile)

where new_xlsfile contains path and name of my new xls file, and path_xls

is
like:
C:\Programmi\MicrosoftOffice2003\Office11\excel.ex e

All works fine, but new file is open in a "new excel session", so isn't
possible use function like "copy or move worksheet" from new file (B) to
other opened files (for ex, to A).

My question: there is a way to open my new file (B) in same

"excel-session"
of caller-file (B)?
Thanks in advance
JFM




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
how do I email amacro? leo Excel Worksheet Functions 24 August 9th 06 02:47 PM
Open last file with certain file name GEORGIA Excel Discussion (Misc queries) 5 April 13th 06 01:48 PM
Weird File Open/Save As Behavior [email protected] Excel Discussion (Misc queries) 0 December 9th 05 02:26 AM
Trying to open file, may have renamed it sirsoto Excel Discussion (Misc queries) 4 August 12th 05 12:54 PM
Sumif Linking to Another Workbook error #VALUE! Tunde Excel Discussion (Misc queries) 16 March 4th 05 03:02 AM


All times are GMT +1. The time now is 08:11 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"