PC Review


Reply
Thread Tools Rate Thread

Change VBE Settings

 
 
ward376
Guest
Posts: n/a
 
      16th Sep 2008
Can VBA be used to change VBE settings? Specifically, how can syntax
checking be turned off and variable declaration turned on?

Cliff Edwards
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      16th Sep 2008
The VBE programmability object model does not support changing VBE settings.
I think you'd have to investigate making the changes via registry entries.
The setting are stored under this key:

HKEY_CURRENT_USER\Software\Microsoft\VBA\6.0\Common

--
Jim
"ward376" <(E-Mail Removed)> wrote in message
news:cbd84fd0-31e7-4a58-951c-(E-Mail Removed)...
| Can VBA be used to change VBE settings? Specifically, how can syntax
| checking be turned off and variable declaration turned on?
|
| Cliff Edwards

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      16th Sep 2008
There does not appear to be any exposed property you can change.

However you could add code to read/write 0/1 to
HKCU\Software\Microsoft\VBA\6.0\Common\RequireDeclaration

otherwise SendKeys

Regards,
Peter T



"ward376" <(E-Mail Removed)> wrote in message
news:cbd84fd0-31e7-4a58-951c-(E-Mail Removed)...
> Can VBA be used to change VBE settings? Specifically, how can syntax
> checking be turned off and variable declaration turned on?
>
> Cliff Edwards



 
Reply With Quote
 
ward376
Guest
Posts: n/a
 
      16th Sep 2008
Thanks!

Cliff Edwards

 
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
Security Settings Won't Let Me Download or Change It's Settings =?Utf-8?B?SGFydHNWaWRlbw==?= Windows XP Help 0 18th May 2006 10:18 PM
How do you change admisistrator settings when there isn't an admistrator with settings? Videot Windows XP Help 2 7th Apr 2004 02:39 PM
GPO settings to change outlook settings Ehab Microsoft Outlook 0 15th Jan 2004 04:25 PM
cannot change proxy settings and other settings mzadie Windows XP Internet Explorer 0 5th Oct 2003 01:01 AM
File permissions settings getting changed 'on the fly' / how to change settings back... randyv Microsoft Windows 2000 Advanced Server 0 11th Aug 2003 10:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:15 AM.