Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default macros in excel application object

Hi,

is there a possibility that excel macros are always executed, even if
excel is used as application object called from another application?
(Are macros in XLStart executed if excel is used as application
object.)

Thx, josef

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default macros in excel application object

Use workbook_open code in the workbook being opened.

Private Sub Workbook_Open()
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"josef123" wrote in message
oups.com...
Hi,

is there a possibility that excel macros are always executed, even if
excel is used as application object called from another application?
(Are macros in XLStart executed if excel is used as application
object.)

Thx, josef



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default macros in excel application object

Hi,

is there a posibility for a macro outside the workbook?

Thx, Josef


Bob Phillips wrote:
Use workbook_open code in the workbook being opened.

Private Sub Workbook_Open()
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"josef123" wrote in message
oups.com...
Hi,

is there a possibility that excel macros are always executed, even if
excel is used as application object called from another application?
(Are macros in XLStart executed if excel is used as application
object.)

Thx, josef


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default macros in excel application object

You could use Application.Run

Application.Run "myBook.xls!test_msgbox"

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"josef123" wrote in message
oups.com...
Hi,

is there a posibility for a macro outside the workbook?

Thx, Josef


Bob Phillips wrote:
Use workbook_open code in the workbook being opened.

Private Sub Workbook_Open()
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"josef123" wrote in message
oups.com...
Hi,

is there a possibility that excel macros are always executed, even if
excel is used as application object called from another application?
(Are macros in XLStart executed if excel is used as application
object.)

Thx, josef




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
excel application object josef123 Excel Programming 1 October 16th 06 01:14 PM
creating Excel Application Object in C#? SixSigmaGuy[_2_] Excel Programming 2 July 10th 06 09:55 PM
Excel Automation Add-In, Accessing the application object smedcalf Excel Programming 1 March 10th 05 09:10 PM
"Excel.Application" Object Model Shaker Charts and Charting in Excel 2 January 9th 05 10:24 AM
Problem on the ASP using the Excel.Application Object David Huang Excel Programming 0 April 23rd 04 02:07 AM


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