Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check for Compatibility Pack
Hi,
how to check with VBA whether Office 2007 Compatibility Pack is installed on computer? TIA Reinhard |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check for Compatibility Pack
Here is one possible approach.
'-------------------------------------- Sub CheckForCompatabilityPack() Const HKEY_LOCAL_MACHINE = &H80000002 Dim packInstalled As Boolean strComputer = "." packInstalled = False Set objReg = GetObject("winmgmts:{impersonationLevel=impersonat e}!\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll" objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys For Each Subkey In arrSubKeys If Subkey = "{90120000-0020-0409-0000-0000000FF1CE}" Then packInstalled = True End If Next If packInstalled Then MsgBox "Compatability Pack for Office 2007 installed" End If Set objReg = Nothing End Sub '------------------------------------- Steve Yandl "Reinhard Thomann" wrote in message ... Hi, how to check with VBA whether Office 2007 Compatibility Pack is installed on computer? TIA Reinhard |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check for Compatibility Pack
Hi Steve,
good solution. Many thanks for your help. Regards Reinhard "Steve Yandl" schrieb im Newsbeitrag ... Here is one possible approach. '-------------------------------------- Sub CheckForCompatabilityPack() Const HKEY_LOCAL_MACHINE = &H80000002 Dim packInstalled As Boolean strComputer = "." packInstalled = False Set objReg = GetObject("winmgmts:{impersonationLevel=impersonat e}!\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll" objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys For Each Subkey In arrSubKeys If Subkey = "{90120000-0020-0409-0000-0000000FF1CE}" Then packInstalled = True End If Next If packInstalled Then MsgBox "Compatability Pack for Office 2007 installed" End If Set objReg = Nothing End Sub '------------------------------------- Steve Yandl "Reinhard Thomann" wrote in message ... Hi, how to check with VBA whether Office 2007 Compatibility Pack is installed on computer? TIA Reinhard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Compatibility Pack settings? | Excel Discussion (Misc queries) | |||
How to disable 2007 compatibility pack? | Excel Discussion (Misc queries) | |||
Compatibility Pack for Office 2007 | Excel Discussion (Misc queries) | |||
xlsx won't open with compatibility pack | Excel Discussion (Misc queries) | |||
03' (+ compatibility pack) users viewing 07 | Excel Discussion (Misc queries) |