Link to home
Start Free TrialLog in
Avatar of Caesar-man
Caesar-man

asked on

Writing to registry

Hi All,
I would like to know how can i write to the registry
to this direction:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup\margin_top .

i would like to change it.
if anyone can show me an example that doing that, it will be greate.

and another thing i have notice that if i am changing
the margin from the explorer, for example puting 19.05,
in the registry it will be 0.75000.
so what i am asking is how does it happen ?

Thanks & Regards.
Avatar of hes
hes
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of dignardg
dignardg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dim objWSHShell As Object
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\margin_top","0.75000"
Set  objWSHShell = Nothing

Cheers
Avatar of Caesar-man
Caesar-man

ASKER

Thanks Ark,
You Are The Best