Test if Assistant exists

Haluk

Rules Violation
Joined
Oct 26, 2002
Messages
1,075
Hi all;

I'm trying to find out whether the office assistant is installed on a PC during the set-up of XL.

I tried to using the GetObject method, to check if the Assistant is allready running. I will be glad if someone would help me with the code below so that I can understand the method of GetObject.

Sub Test()
Dim MyAssist As Object
Dim AssistExists As Boolean
AssistExists = True
On Error Resume Next
Set MyAssist = GetObject(, "Office.Assistant")
If Err.Number <> 0 Then AssistExists = False
Err.Clear
MsgBox AssistExists
End Sub
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
This code:

Application.Assistant.On = True

enables the Office Assistant. Maybe it will fail if the Assistant is not installed (I can't test it).
 
Upvote 0
Hi Andrew,

I thought of using that too but, all the PCs in my office have the assistant installed. So I don't have the chance to test it either.

Thank you anyway...
 
Upvote 0

Forum statistics

Threads
1,212,929
Messages
6,110,743
Members
448,295
Latest member
Uzair Tahir Khan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top