#1   Report Post  
Posted to microsoft.public.excel.programming
MD MD is offline
external usenet poster
 
Posts: 7
Default easy one!

I have a blank,

What is the code to start a new EXCEL application. Independant from the
first one that is opned ?

thx

Michel


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default easy one!

Look at the createobject method.

--
Regards,
Tom Ogilvy

"MD" wrote in message
.. .
I have a blank,

What is the code to start a new EXCEL application. Independant from the
first one that is opned ?

thx

Michel




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default easy one!

Hi,

Try this

Public Sub NewExcelWindow()
Set objexcel = New Excel.Application
objexcel.Visible = True
End Sub

Good Luck
ross


"MD" wrote in message ...
I have a blank,

What is the code to start a new EXCEL application. Independant from the
first one that is opned ?

thx

Michel

  #4   Report Post  
Posted to microsoft.public.excel.programming
MD MD is offline
external usenet poster
 
Posts: 7
Default easy one!

Thx Ross but I guess I wasn't clear in my request.

I want to open the EXCEL application BUT with a new workbook in it. If I
use your code, as soon as the sub ends, the application closes also. I wish
for the worbook to remain open. In other words, have 2 independant sessons
of EXCEL running.

Michel


"ross" wrote in message
om...
Hi,

Try this

Public Sub NewExcelWindow()
Set objexcel = New Excel.Application
objexcel.Visible = True
End Sub

Good Luck
ross


"MD" wrote in message

...
I have a blank,

What is the code to start a new EXCEL application. Independant from the
first one that is opned ?

thx

Michel



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default easy one!

Michel,

sorry.

add this in the declarations section of the module

Global objexcel as Excel.Application

also update other code to

Public Sub NewExcelWindow()
Set objexcel = New Excel.Application
objexcel.Visible = True
objexcel.Workbooks.Add

End Sub

which will open a new book aswell


good Luck
ross
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
Easy one for you all... Connie Martin Excel Worksheet Functions 5 October 31st 09 08:58 AM
easy one! Norbert[_2_] Charts and Charting in Excel 4 October 16th 08 04:34 PM
I'm sure it must be easy BrianH Excel Discussion (Misc queries) 5 October 4th 07 11:31 AM
How to sum in an easy way? [email protected] Excel Discussion (Misc queries) 7 April 20th 06 02:38 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM


All times are GMT +1. The time now is 04:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"