CType Sub or Function not defined
I adapted code from http://msdn2.microsoft.com/en-us/lib...7c(VS.80).aspx to use in Microsoft Word.
When i try to run the code, the first CType gets highlighted and i get an error message: "Compile Error: Sub or Function not defined"
I think i am missing a Reference, but i don't know which. What's up?
Re: CType Sub or Function not defined
Welcome to the Forums.
That link is for .NET and CType is a .NET function that has no direct equilivant in Word VBA.
Check out my code example on creating a Word toolbar and button.
http://www.vbforums.com/showpost.php...92&postcount=3
Re: CType Sub or Function not defined
sweet. thanks for your help