In my VBA code I have a string containing the name of a color and I wnat to convert it into a Long.
In other words I have "wdColorDarkRed" and I want wdColorDarkRed.
I think the only way you can do this is with the TypeLib Info Library (part of Visual Studio but available for download in several places on the web). Might I ask where you get the string from in order to need it converting?
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.