Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - HaroldRobbins

Pages: [1]
1
I found the issue.  It seems that, since it's complaining about creating ActiveX, it's talking about the OCX wrappered version (comdlg32.ocx), which isn't deployed with windows 7.  I registered it on my computer & I'm rocking now.

2
Automation Interface, Add-Ins and Tools / Problem scripting Color Selector
« on: November 09, 2016, 03:13:58 am »
Folks,
I'm writing a VB DiagramScript to programmatically add lines to a diagram.  I would hate to hard-code the color of the diagramlink, so I'd thought to use a color dialog.

Since it wasn't included in the VBScript-Dialog library, I created my own routine:
Code: [Select]
function GetColor()
' Create new CommonDialog object
dim colorDialog
set colorDialog = CreateObject("MSComDlg.CommonDialog") '<== Fails here

colorDialog.ShowColor
GetColor = colorDialog.Color
end function

It's failing on the CreateObject line with "ActiveX component can't create object: 'MSComDlg.CommonDialog'".
Any idea what I'm doing wrong?

Thanks in advance,
Buddy Robbins

Pages: [1]