Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Code to Auto Select OK when an Option Box Appears

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Code to Auto Select OK when an Option Box Appears

then why display the info? box at all why not simply

response =vbOk

and crack on with whatever you were doing

Mike

" wrote:

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Code to Auto Select OK when an Option Box Appears

Mike,

The problem is my macro is running another macro that has locked code.
Therefore, I can't just make this change. ANy other ideas?

Thanks

Adam Bush

"Mike H" wrote:

then why display the info? box at all why not simply

response =vbOk

and crack on with whatever you were doing

Mike

" wrote:

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Code to Auto Select OK when an Option Box Appears

Hi,

I think you have a fundamental problem in that even if it were possible it
would probably only be so by getting into the code from where the infobox!!
is called from. As you currently describe your problem that code is
unavailable to you and is waiting for a click and there is in my view little
you can do about that but other respondents may differ.

Mike

" wrote:

Mike,

The problem is my macro is running another macro that has locked code.
Therefore, I can't just make this change. ANy other ideas?

Thanks

Adam Bush

"Mike H" wrote:

then why display the info? box at all why not simply

response =vbOk

and crack on with whatever you were doing

Mike

" wrote:

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Code to Auto Select OK when an Option Box Appears

Mike,

IS there anyway to automatically say OK to anything that pops up, no matter
what it is or what the source is?

Thanks

Adam Bush

"Mike H" wrote:

Hi,

I think you have a fundamental problem in that even if it were possible it
would probably only be so by getting into the code from where the infobox!!
is called from. As you currently describe your problem that code is
unavailable to you and is waiting for a click and there is in my view little
you can do about that but other respondents may differ.

Mike

" wrote:

Mike,

The problem is my macro is running another macro that has locked code.
Therefore, I can't just make this change. ANy other ideas?

Thanks

Adam Bush

"Mike H" wrote:

then why display the info? box at all why not simply

response =vbOk

and crack on with whatever you were doing

Mike

" wrote:

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Code to Auto Select OK when an Option Box Appears

Hi again,

I don't know of any way to do that so i think you will have to see if others
have any ideas.

Mike

" wrote:

Mike,

IS there anyway to automatically say OK to anything that pops up, no matter
what it is or what the source is?

Thanks

Adam Bush

"Mike H" wrote:

Hi,

I think you have a fundamental problem in that even if it were possible it
would probably only be so by getting into the code from where the infobox!!
is called from. As you currently describe your problem that code is
unavailable to you and is waiting for a click and there is in my view little
you can do about that but other respondents may differ.

Mike

" wrote:

Mike,

The problem is my macro is running another macro that has locked code.
Therefore, I can't just make this change. ANy other ideas?

Thanks

Adam Bush

"Mike H" wrote:

then why display the info? box at all why not simply

response =vbOk

and crack on with whatever you were doing

Mike

" wrote:

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Code to Auto Select OK when an Option Box Appears

Ok well thanks for your help Mike.

"Mike H" wrote:

Hi again,

I don't know of any way to do that so i think you will have to see if others
have any ideas.

Mike

" wrote:

Mike,

IS there anyway to automatically say OK to anything that pops up, no matter
what it is or what the source is?

Thanks

Adam Bush

"Mike H" wrote:

Hi,

I think you have a fundamental problem in that even if it were possible it
would probably only be so by getting into the code from where the infobox!!
is called from. As you currently describe your problem that code is
unavailable to you and is waiting for a click and there is in my view little
you can do about that but other respondents may differ.

Mike

" wrote:

Mike,

The problem is my macro is running another macro that has locked code.
Therefore, I can't just make this change. ANy other ideas?

Thanks

Adam Bush

"Mike H" wrote:

then why display the info? box at all why not simply

response =vbOk

and crack on with whatever you were doing

Mike

" wrote:

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Code to Auto Select OK when an Option Box Appears

So you are saying the locked macro is the macro that pops up the OK message box
and you cannot edit that macro to quit popping up the OK and just carry on?

And your macro will not work until the OK is acknowledged?

What does the locked macro do after you hit the OK?

End or?

Can you get the unlocker password from whomever locked the VBAProject?


Gord Dibben MS Excel MVP

On Wed, 20 Feb 2008 13:08:07 -0800,
m wrote:

Ok well thanks for your help Mike.

"Mike H" wrote:

Hi again,

I don't know of any way to do that so i think you will have to see if others
have any ideas.

Mike

" wrote:

Mike,

IS there anyway to automatically say OK to anything that pops up, no matter
what it is or what the source is?

Thanks

Adam Bush

"Mike H" wrote:

Hi,

I think you have a fundamental problem in that even if it were possible it
would probably only be so by getting into the code from where the infobox!!
is called from. As you currently describe your problem that code is
unavailable to you and is waiting for a click and there is in my view little
you can do about that but other respondents may differ.

Mike

" wrote:

Mike,

The problem is my macro is running another macro that has locked code.
Therefore, I can't just make this change. ANy other ideas?

Thanks

Adam Bush

"Mike H" wrote:

then why display the info? box at all why not simply

response =vbOk

and crack on with whatever you were doing

Mike

" wrote:

Is there any code than can be put into vba that will automatically select ok
when an info box appears asking Ok, Cancel, or help? I need ok to be
automatically selected or else my macro is useless.

Thanks

Adam Bush


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
Cannot select or move objects. Slash Circle appears. Elementary Computer Lab Excel Discussion (Misc queries) 2 May 16th 23 12:44 PM
Can I select more than one option in a drop down box? megs Excel Discussion (Misc queries) 5 February 15th 11 11:33 AM
List Box Multi Select Option ann_nyc Excel Worksheet Functions 0 October 11th 05 06:56 PM
How do I count how many times a code appears in a column? Leo Excel Worksheet Functions 3 June 2nd 05 09:50 PM
How can I select to print on 11 x 17 paper? It is not an option . Mary Excel Discussion (Misc queries) 13 January 15th 05 12:34 AM


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