Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Open an Excel file in a new Excel session

Hi all,

This is a bit tricky question. I would like to open my Excel file in a new
session of Excel.

First, I thought of creating a shortcut to the file and append switch like
"/e" or "/m". Nope! Doesn't work!

Next, VBA code (e.g., using CreatObject). But given that the code resides
within the file, how can I open the file itself in the new Excel session???

Any idea? I prefer creating a shortcut for the ease of use for our users and
then do something extra.

Thanks for your ideas/thorughts.
---
Tetsuya Oguma, Singapore
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Open an Excel file in a new Excel session

Type this code into a text file and save the text file with extension VBS,
like (MY.VBS)

set aa=createobject("Excel.Application")
aa.Workbooks.Open "c:\my.xls"
aa.visible = true
set aa = nothing

Change line 2 to show your workbook name.

Create your shortcut to this VBS file in the usual way.


"Tetsuya Oguma" wrote:

Hi all,

This is a bit tricky question. I would like to open my Excel file in a new
session of Excel.

First, I thought of creating a shortcut to the file and append switch like
"/e" or "/m". Nope! Doesn't work!

Next, VBA code (e.g., using CreatObject). But given that the code resides
within the file, how can I open the file itself in the new Excel session???

Any idea? I prefer creating a shortcut for the ease of use for our users and
then do something extra.

Thanks for your ideas/thorughts.
---
Tetsuya Oguma, Singapore

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
Open mutiple spreadsheets in one session of Excel and use 'ALT' + ppatel Setting up and Configuration of Excel 2 June 23rd 09 09:39 PM
Open xls file from other xls-file in same session Andrea Excel Discussion (Misc queries) 1 February 11th 07 01:26 PM
Startup and template locations in Citrix TS session and local session John Nurick Setting up and Configuration of Excel 2 September 21st 06 10:42 PM
Make it so a new session of Excel opens with each file in 2002? Scott Excel Discussion (Misc queries) 3 February 7th 06 05:35 PM
Each New Excel to open in another session tinwasp Excel Worksheet Functions 1 December 8th 05 05:44 PM


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