Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Open Worbook and Disable Macros

I know how to open a workbook using VBA, but how do i open a workbook and
disable its macros.

D


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Open Worbook and Disable Macros

First, just open Excel by itself and disable macros (ToolsMacrosSecurity, etc.). Then open the workbook with the macros you don't
want to run.

HTH
--
RMC,CPA


"DMc2005" wrote in message ...
I know how to open a workbook using VBA, but how do i open a workbook and
disable its macros.

D



  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Open Worbook and Disable Macros

I am running a macro from a file that opens several other files and enters
data into these files. however these files have macros in them.

so essentially i need to keep macros in my main workbook. but disable the
macros in the other workbooks. i cannot rely on users clicking disable
macros.

D
"R. Choate" wrote in message
...
First, just open Excel by itself and disable macros
(ToolsMacrosSecurity, etc.). Then open the workbook with the macros you
don't
want to run.

HTH
--
RMC,CPA


"DMc2005" wrote in message
...
I know how to open a workbook using VBA, but how do i open a workbook and
disable its macros.

D





  #4   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 11,058
Default Open Worbook and Disable Macros

Start Excel in Safe Mode:

http://office.microsoft.com/en-us/as...823931033.aspx
--
Gary''s Student


"DMc2005" wrote:

I know how to open a workbook using VBA, but how do i open a workbook and
disable its macros.

D



  #5   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Open Worbook and Disable Macros

If you want to suppress a Workbook.Open Event

Application.EnableEvents = False
workbooks.Open "C:\MyFolder\Mybook.xls"
Application.EnableEvents = True

This doesn't disable events in the workbook, but it does stop the open event
from running. Leave events disabled if you want to suppress other events.

--
Regards,
Tom Ogilvy

"DMc2005" wrote in message
...
I know how to open a workbook using VBA, but how do i open a workbook and
disable its macros.

D






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 can I disable macros after the initial open? Troy Excel Discussion (Misc queries) 4 February 13th 06 03:38 PM
Open Worbook and Disable Macros DMc2005 Excel Discussion (Misc queries) 4 October 1st 05 07:23 PM
How to disable macros? LenB[_2_] Excel Programming 6 October 6th 03 07:54 PM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM
en-/disable macros pop-up James[_10_] Excel Programming 1 July 22nd 03 05:55 PM


All times are GMT +1. The time now is 09:06 AM.

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"