Solved

Change HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable

Posted on 2003-11-07
4
1,192 Views
Last Modified: 2010-08-05
Hi,

I need to change this registry key in VBA using a command button? HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable

Any thoughts?

Chris
0
Comment
Question by:archer1050
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 39

Expert Comment

by:stevbe
ID: 9702994
you could shell a .reg file or try this code out ...

http://www.mvps.org/access/api/api0015.htm

Steve
0
 
LVL 4

Expert Comment

by:inox
ID: 9703830

you can use

    Dim objWSH As Object    
    Set objWSH = CreateObject("WScript.Shell")
    objWSH.RegWrite "HKLM\Software\MyApplication\strValue", "Some string value"

you also can use the
GetSetting, SaveSetting functions:
GetSetting(appname, section, key[, default])
but they are linited to the HKEY_CURRENT_USER key, sufficient for your request
0
 

Author Comment

by:archer1050
ID: 9712913
The value is a dword value, will this function still work?
0
 
LVL 4

Accepted Solution

by:
inox earned 125 total points
ID: 9714332

with
objWSH.RegWrite "HKLM\Software\MyApplication\key1", 1234, "REG_DWORD"

you can write integers and read also
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question