Error on Dim obForm statement (vba)

L

Lurfys Maw

Several years ago, Jay Freedman helped me and another poster write a
macro to randomly assign different colors to each letter in a
selection of text. The macro worked beautifully the last time I used
it. I just tried it again and I got an error on this Dim statement:

Dim obForm As frmCharColors
Set obForm = New frmCharColors

I never really understood what this was doing. Can someone help me
understand this or at least fix it?

I don't believe I changed it since it worked, but I could be wrong
about that. I have upgraded from Office 2000 to Office 2007 since
then.
 
L

Lurfys Maw

Several years ago, Jay Freedman helped me and another poster write a
macro to randomly assign different colors to each letter in a
selection of text. The macro worked beautifully the last time I used
it. I just tried it again and I got an error on this Dim statement:

Dim obForm As frmCharColors
Set obForm = New frmCharColors

I never really understood what this was doing. Can someone help me
understand this or at least fix it?

I don't believe I changed it since it worked, but I could be wrong
about that. I have upgraded from Office 2000 to Office 2007 since
then.

PS: Sorry, I forgot to include the error message. It a compile error:

User-defined type not defined
 
L

Lurfys Maw

PS: Sorry, I forgot to include the error message. It a compile error:

User-defined type not defined

PPS: I just realized that I posted this to the wrong group. I've
reported it on vba.general. Please ignore this and reply over there.
Sorry for the error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top