Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default VBA question create Excel Object and run XLSTART startup excel

Hi All


In C:\Documents and Settings\moonhkt\Application Data\Microsoft\Excel
\XLSTART have PERSONAL.xls file.

In my VBA, Winword document, have below coding.

How to include open PERSONAL.xls file ? My personal.xls have some
funcations on it.

Set AppExcel = CreateObject("Excel.Application")
Set ExcelDocs = AppExcel.Workbooks
ExcelDocs.Open FN
' ~~ExcelDocs.Application.ActiveWorkbook.RunAutoMacr os
xlAutoOpen
AppExcel.Visible = True
Set ExcelDocs = Nothing
Set AppExcel = Nothing

moonhkt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default VBA question create Excel Object and run XLSTART startup excel

Set AppExcel = CreateObject("Excel.Application")
Set ExcelDocs = AppExcel.Workbooks.Open(FN)
' ~~ExcelDocs.Application.ActiveWorkbook.RunAutoMacr os
xlAutoOpen
AppExcel.Visible = True
Set ExcelDocs = Nothing
Set AppExcel = Nothing


--
__________________________________
HTH

Bob

"moonhk" wrote in message
...
Hi All


In C:\Documents and Settings\moonhkt\Application Data\Microsoft\Excel
\XLSTART have PERSONAL.xls file.

In my VBA, Winword document, have below coding.

How to include open PERSONAL.xls file ? My personal.xls have some
funcations on it.

Set AppExcel = CreateObject("Excel.Application")
Set ExcelDocs = AppExcel.Workbooks
ExcelDocs.Open FN
' ~~ExcelDocs.Application.ActiveWorkbook.RunAutoMacr os
xlAutoOpen
AppExcel.Visible = True
Set ExcelDocs = Nothing
Set AppExcel = Nothing

moonhkt



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 to force VBA to create an Excel.Application object of specified version of Excel? surotkin[_3_] Excel Programming 0 November 1st 05 07:32 PM
CREATE LIST OBJECT IN EXCEL MIKE Excel Worksheet Functions 0 June 20th 05 08:13 AM
Question about opening workbooks on Excel startup 38N90W Excel Programming 5 August 28th 04 12:57 PM
using create object and sendkeys from excel to FTP Bobsa Excel Programming 4 April 13th 04 09:55 PM
How to create a PASSWORD ENTRY BOX at startup of Excel Application Marcello do Guzman Excel Programming 1 December 8th 03 06:26 AM


All times are GMT +1. The time now is 12:23 AM.

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"