LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Accessing an Excel file which has macros


It wasn't meant to be picky, sorry it seemed that way! ;180310 Wrote:
A bit picky but I like where you're coming from :-)

"Simon Lloyd" wrote:


You could use this line of code but you need to be more specific on

what
button where.

Code:
--------------------
Application.EnableEvents = False
--------------------
you would have to tie it in with an IF statement so it will only be

used
on a certain sheet or workbook!, don't forget to turn it back on
;180058 Wrote:
I have written some code which opens another file which has macros

and
extracts data. I don't need to run any macros in this other file.

Is
there
a way of turning off the button to run macros when the other file

opens
up?
Also I'm doing this in 2003 at the mo but is there any difference

with
2007?

Many thanks

James



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' ('The Code Cage' (http://www.thecodecage.com))

------------------------------------------------------------------------
Simon Lloyd's Profile: 'The Code Cage Forums - View Profile: Simon

Lloyd' (http://www.thecodecage.com/forumz/member.php?userid=1)
View this thread: 'Accessing an Excel file which has macros - The

Code Cage Forums'
(http://www.thecodecage.com/forumz/sh...ad.php?t=49795)




--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=49795

 
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
Accessing Excel 2007 Userforms from Macros Brad Wylie Excel Programming 16 March 4th 07 07:28 PM
Problem accessing an Excel file from ADO Michel S. Excel Programming 1 December 16th 06 12:21 AM
Accessing Excel Macros from VB.Net Sameer Excel Programming 2 August 17th 06 08:26 AM
accessing word file from an excel file surena Excel Programming 0 May 23rd 06 02:50 PM
accessing .mpp file using excel VBA macros amit[_3_] Excel Programming 0 November 10th 05 09:44 AM


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