ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Automatic Activation of Design Mode (https://www.excelbanter.com/excel-programming/307319-automatic-activation-design-mode.html)

Melissa Matile

Automatic Activation of Design Mode
 
Help! When I execute a procedure to import a text file
into Excel, the Design Mode is automatically engaging,
which then doesn't allow the procedure to process any
further actions past the open text file. How do I stop
this?

Tom Ogilvy

Automatic Activation of Design Mode
 
Never heard of anything like that.

Perhaps you should show the code around the spot where you think this is
happening. How do you know you are in design mode?

--
Regards,
Tom Ogilvy

"Melissa Matile" wrote in message
...
Help! When I execute a procedure to import a text file
into Excel, the Design Mode is automatically engaging,
which then doesn't allow the procedure to process any
further actions past the open text file. How do I stop
this?




Melissa[_2_]

Automatic Activation of Design Mode
 
The procedure is simple. One line:
Workbooks.OpenText "c:\class\JuneData.txt"

If the procedure is triggered by a keyboard shortcut, then
Design Mode is activated (you can tell by the button on
either the VB toolbar or the Control Toolbox).

If the procedure is triggered by clicking Run in the Run
Macro dialog box, then Design Mode is not activated.

It's insane and I can't figure out what the problem is.

mmm

-----Original Message-----
Never heard of anything like that.

Perhaps you should show the code around the spot where

you think this is
happening. How do you know you are in design mode?

--
Regards,
Tom Ogilvy

"Melissa Matile"

wrote in message
...
Help! When I execute a procedure to import a text file
into Excel, the Design Mode is automatically engaging,
which then doesn't allow the procedure to process any
further actions past the open text file. How do I stop
this?



.



All times are GMT +1. The time now is 02:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com