Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I email amacro? | Excel Worksheet Functions | |||
Open last file with certain file name | Excel Discussion (Misc queries) | |||
Weird File Open/Save As Behavior | Excel Discussion (Misc queries) | |||
Trying to open file, may have renamed it | Excel Discussion (Misc queries) | |||
Sumif Linking to Another Workbook error #VALUE! | Excel Discussion (Misc queries) |