Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Save, Save As, Print Grayed Out when instance created via VBA/VB6

Hi Mike,
You dealing with two Excel objects.
The workbook the code is running in (thisworkbook) and xapp.

If you want xapp to become visible use its object prefix...
xapp.application.visible=true

If you want xapp to open a wb, again use the prefix
xapp.Workbooks.Open "C:\Test"

Otherwise thisworkbook will receive the instruction.


--

John

johnf202 at hotmail dot com


"Mike Williams" wrote in message
...
When creating an instance of Excel XP or 2000 via the
following:

Dim xapp As Excel.Application

Set xapp = CreateObject("Excel.application")
Excel.Application.Visible = True
Workbooks.Open "C:\Test"

The .XLA and .XLL files that are normally loaded during
the launch process are not loaded and the Save, Save As,
and Print menu items are unavailable.

In other words, if the shortcut to launch Excel or an icon
representing an Excel document is double-clicked all
macros and files in the XLStart directory are loaded
correctly. When launching them programmatically, they
appear not to load and the Save, Save As and Print menu
options under File are grayed-out.

Thoughts, commments, ideas....

Thank you,

Mike Williams



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
Duplicate files created on a save mikebach Excel Discussion (Misc queries) 2 September 6th 12 01:45 PM
Spurious files created on Save Chris Skrimshire Excel Discussion (Misc queries) 6 October 22nd 08 10:17 PM
How do I save a custom cell format that I created? mrs_teeks Excel Worksheet Functions 1 May 8th 06 03:55 AM
File-Save is grayed out for periods of time in Excel 2003 Ned Grubb Excel Discussion (Misc queries) 1 June 14th 05 09:47 PM
Excell2003 (SP-1) File > Save and File > Save As.. grayed out Joe Murphy Excel Discussion (Misc queries) 0 March 9th 05 10:00 PM


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