#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default VBA code to

Windows 2000/Excel 2000

I am automating some reports in Excel. These reports
access data from a data cube located on a server. We have
a third party .xla that manages the process.

I have several files I am updating, but the third
party .xla has a 'message' box that pops up at the
completion of one of the tasks that requires the selection
of 'OK' in order to continue.

I would like to either disable the feature, or , use code
to select 'OK' for any messages that require the selection
of 'OK'

I have tried
With Application
.DisplayAlerts = False
End With
but of course that does not work for this type of message
box.

Thanks in advance...

- - TB - -


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default VBA code to

That messagebox was hardcoded in the code of the add-in you mentioned. You won't be able to disable that. You may contact the author of that add-in to change that or if you have access to the source code of that add-in, you may ask someone to change that for you. It should be very simple.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default VBA code to

I tend to agree with Edwin, but you may want to take a look at this
link. I haven't tried PTFB with Excel message boxes, but I've used it
successfully with other applications.

http://www.bobos.demon.co.uk/par/PTFB.htm

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

Windows 2000/Excel 2000

I am automating some reports in Excel. These reports
access data from a data cube located on a server. We have
a third party .xla that manages the process.

I have several files I am updating, but the third
party .xla has a 'message' box that pops up at the
completion of one of the tasks that requires the selection
of 'OK' in order to continue.

I would like to either disable the feature, or , use code
to select 'OK' for any messages that require the selection
of 'OK'

I have tried
With Application
.DisplayAlerts = False
End With
but of course that does not work for this type of message
box.

Thanks in advance...

- - TB - -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default VBA code to

Thanks for the follow-up. I figured the message box would
be 'hard coded', but thought worth asking....

As for your PTFB suggestion, it worked like a charm! I'm
not wild about going outside of VBA for this function, but
it solved the issue. Thanks.
-----Original Message-----
I tend to agree with Edwin, but you may want to take a

look at this
link. I haven't tried PTFB with Excel message boxes, but

I've used it
successfully with other applications.

http://www.bobos.demon.co.uk/par/PTFB.htm

HTH
Paul
----------------------------------------------------------

----------------------------------------------------
Be advised to back up your WorkBook before attempting to

make changes.
----------------------------------------------------------

----------------------------------------------------

Windows 2000/Excel 2000

I am automating some reports in Excel. These reports
access data from a data cube located on a server. We

have
a third party .xla that manages the process.

I have several files I am updating, but the third
party .xla has a 'message' box that pops up at the
completion of one of the tasks that requires the

selection
of 'OK' in order to continue.

I would like to either disable the feature, or , use

code
to select 'OK' for any messages that require the

selection
of 'OK'

I have tried
With Application
.DisplayAlerts = False
End With
but of course that does not work for this type of

message
box.

Thanks in advance...

- - TB - -


.

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
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Code to conditional format all black after date specified in code? wx4usa Excel Discussion (Misc queries) 3 December 26th 08 07:06 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Convert a Number Code to a Text Code Traye Excel Discussion (Misc queries) 3 April 6th 07 09:54 PM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


All times are GMT +1. The time now is 02:09 PM.

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"