Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Udo Udo is offline
external usenet poster
 
Posts: 48
Default Change in action when converting to *.xla

Hi experts,

there is a simple starting macro which runs fine when the file which
contains it is started separately:

Sub kick_off()
Windows("Help and aid.xls").Visible = False
ThisWorkbook.Sheets("Menu_Sheet").Visible = xlVeryHidden

With Application
.Calculation = xlManual
.MaxChange = 0.001
End With

Call CreateMenu

Application.ScreenUpdating = True

End Sub

When I convert it to an *.xla and start it from the Add-In-Manager, it
just generates an error message and doesn't do anything.

How can I cope with that?
Udo

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Change in action when converting to *.xla

Change ThisWorkbook to Activeworkbook. Thisworkbook refers to the addin,
Activeworkbook refers to the active workbook (couldn't think of a better way
to say that <vbg).

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Udo" wrote in message
oups.com...
Hi experts,

there is a simple starting macro which runs fine when the file which
contains it is started separately:

Sub kick_off()
Windows("Help and aid.xls").Visible = False
ThisWorkbook.Sheets("Menu_Sheet").Visible = xlVeryHidden

With Application
.Calculation = xlManual
.MaxChange = 0.001
End With

Call CreateMenu

Application.ScreenUpdating = True

End Sub

When I convert it to an *.xla and start it from the Add-In-Manager, it
just generates an error message and doesn't do anything.

How can I cope with that?
Udo



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
Change Template Double Click behavior / action Eric Excel Discussion (Misc queries) 1 April 2nd 09 10:21 PM
How to change action of double-click left mouse button? MouseControl Excel Discussion (Misc queries) 1 September 10th 07 11:50 PM
Cell change causes action [email protected] Excel Programming 5 March 8th 06 02:22 PM
Evaluate cells for change and then action tim Excel Programming 0 February 18th 05 08:43 AM
Automating a date field to change on certain action TODD Excel Programming 3 November 7th 03 05:04 PM


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