Solved

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

Posted on 2003-11-07
4
1,170 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now