PC Review


Reply
Thread Tools Rate Thread

Setting VBA Options Via Code

 
 
dch3
Guest
Posts: n/a
 
      10th Jul 2008
Is there a way to use code to programmically set options that appear in the
VBA Editor's TOOLS > OPTIONS dialog?

I would like use code to set the Error Handling to Break on Unhandled Errors.
 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      10th Jul 2008
On Wed, 9 Jul 2008 21:39:00 -0700, dch3 wrote:

> Is there a way to use code to programmically set options that appear in the
> VBA Editor's TOOLS > OPTIONS dialog?
>
> I would like use code to set the Error Handling to Break on Unhandled Errors.


Look up the SetOption and GetOption methods in VBA help.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
dch3
Guest
Posts: n/a
 
      10th Jul 2008
The online MSDN documentation didn't list those specific items.

"fredg" wrote:

> On Wed, 9 Jul 2008 21:39:00 -0700, dch3 wrote:
>
> > Is there a way to use code to programmically set options that appear in the
> > VBA Editor's TOOLS > OPTIONS dialog?
> >
> > I would like use code to set the Error Handling to Break on Unhandled Errors.

>
> Look up the SetOption and GetOption methods in VBA help.
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

 
Reply With Quote
 
dch3
Guest
Posts: n/a
 
      10th Jul 2008
::: RANTING :::
That *&@#^*$ MS Documentation, why the *@#&$^@* isn't it complete and
consistent.

::: SHOUTING :::
Why the @*(#$& does one bit of information provide you with a partial list
of options, while another *&#$^*@ bit provides you with other information?

::: STOMPING :::
Why the @*(#$&@(* is the only mention of the get/setOption("Error Trapping")
a *@&#$^8 note at the very bottom of the *&^@$ page in Access VBA help? Why
wasn't it explicity #*@&$^ listed in the MSDN documentation on line?

....and just today I decided to put into a scifi-Hitchiker-esque story that
I'm writting a HELP hologram that's never any help at all. "I'm sorry for
information on using the application please refer to the user's manual", (or
my favorite - the user's scream HELP and his response is "I'm sorry I didn't
understand that. Please restate your request.")

David H

"fredg" wrote:

> On Wed, 9 Jul 2008 21:39:00 -0700, dch3 wrote:
>
> > Is there a way to use code to programmically set options that appear in the
> > VBA Editor's TOOLS > OPTIONS dialog?
> >
> > I would like use code to set the Error Handling to Break on Unhandled Errors.

>
> Look up the SetOption and GetOption methods in VBA help.
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

 
Reply With Quote
 
Stuart McCall
Guest
Posts: n/a
 
      10th Jul 2008
"dch3" <(E-Mail Removed)> wrote in message
news:BED96996-F7C0-47C8-9EF6-(E-Mail Removed)...
> The online MSDN documentation didn't list those specific items.


It does if you know where to look:

http://msdn.microsoft.com/en-us/library/aa172326(office.11).aspx


 
Reply With Quote
 
dch3
Guest
Posts: n/a
 
      10th Jul 2008
How utterly ridiculous of me to think that it'd make sense to have a table
for the options that are set via the VBA editor? God forbid that MS should
make it easy. Of course, it'd only make sense to put it as a foot note at the
bottom, how silly of me not to immediately scroll down to the bottom or to
look through the tables without reading the text above and below each.


"Stuart McCall" wrote:

> "dch3" <(E-Mail Removed)> wrote in message
> news:BED96996-F7C0-47C8-9EF6-(E-Mail Removed)...
> > The online MSDN documentation didn't list those specific items.

>
> It does if you know where to look:
>
> http://msdn.microsoft.com/en-us/library/aa172326(office.11).aspx
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook setting through code(in >tools >options) tomthedev Microsoft Outlook VBA Programming 1 15th Sep 2009 02:10 AM
setting Onclick and setting the ClientID in behind code isn't working in Mozilla davidr@sharpesoft.com Microsoft ASP .NET 2 22nd Aug 2006 11:30 PM
setting Onclick and setting the ClientID in behind code isn't working in Mozilla davidr@sharpesoft.com Microsoft ASP .NET 0 22nd Aug 2006 01:55 AM
Setting Access options in code Rob Microsoft Access Form Coding 2 28th Jul 2003 05:26 PM
Re: Setting Access options in code Allen Browne Microsoft Access Form Coding 0 28th Jul 2003 02:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 PM.