Discussion:
Adding a file in an Add-in
(too old to reply)
Howard Kaikow
2006-09-08 19:09:24 UTC
Permalink
I'm trying to Add a file in an add-in but I get error 91: Object variable or
With block variable not set.
What am I doing wrong? frmReadFile.frm is not already in the project.

Public VBInstance As vbide.VBE
Dim vbComp As vbide.VBComponent
Dim strUserform As String


On Error Resume Next
strUserformPath = App.Path & "\" & "frmReadFile.frm"
MsgBox "3: " & strUserformPath
Set vbComp =
VBInstance.ActiveVBProject.VBComponents.AddFile(strUserformPath)
MsgBox "DEBUG 3: " & Err.Number & ": " & Err.Description
Howard Kaikow
2006-09-09 18:35:12 UTC
Permalink
Never mind!

I figured it out.

My mind was thinking bass ackwards!
Jan Hyde
2006-09-11 08:52:49 UTC
Permalink
"Howard Kaikow" <***@standards.com>'s wild thoughts were
released on Sat, 9 Sep 2006 14:35:12 -0400 bearing the
Post by Howard Kaikow
Never mind!
I figured it out.
My mind was thinking bass ackwards!
Perhaps you'd like to share you findings in case someone
else encounters your issue.



Jan Hyde (VB MVP)
--
"A new study shows that licking the sweat off a frog can cure depression.
The down side is, the minute you stop licking, the frog gets depressed again."
Howard Kaikow
2006-09-12 14:20:15 UTC
Permalink
Post by Jan Hyde
Post by Howard Kaikow
My mind was thinking bass ackwards!
Perhaps you'd like to share you findings in case someone
else encounters your issue.
Nothing to share.
I just screwed up.

Continue reading on narkive:
Loading...