Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2007

Tip: Looking for answers? Try searching our database.

What is "DlgText$" & how do I translate it to VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BobTheElder - 13 Nov 2007 22:28 GMT
I'm attempting to convert some old Word macros and I've run into several
terms beginning with Dlg... that I'd like to convert to VBA. The macros still
function using WordBasic.xxx but I fear that will not be the case when
Microsoft upgrades again.

Any assistance appreciated.
Doug Robbins - Word MVP - 14 Nov 2007 02:46 GMT
If I recall correctly (which may not be the case), those commands would have
been associated with the use of a custom dialog,

The equivalent in the VBA world is a UserForm.

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> I'm attempting to convert some old Word macros and I've run into several
> terms beginning with Dlg... that I'd like to convert to VBA. The macros
[quoted text clipped - 3 lines]
>
> Any assistance appreciated.
Jay Freedman - 14 Nov 2007 04:34 GMT
Bob -

You may find it useful to download the WordBasic help file, which will
describe what the old code does:
http://www.microsoft.com/downloads/info.aspx?na=22&p=1&SrcDisplayLang=en&SrcCate
goryId=&SrcFamilyId=&u=%2fdownloads%2fdetails.aspx%3fFamilyID%3d1a24b2a7-31ae-4b
7c-a377-45a8e2c70ab2%26DisplayLang%3den


Once you have some idea what it should do, then you should (and will
probably have to) start from scratch in pure VBA to get the same or
similar functionality.

>If I recall correctly (which may not be the case), those commands would have
>been associated with the use of a custom dialog,
[quoted text clipped - 12 lines]
>>
>> Any assistance appreciated.

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
BobTheElder - 14 Nov 2007 18:30 GMT
Doug - I appreciate the link; I am recreating a WordBasic form as a UserForm
and attempting to translate the code to work with the new form.

Jay - I have the WordBasic help file but the only help for Dlg... commands
is that they have "been replaced by custom user forms. Refer to the topics in
Microsoft Forms Help." I haven't been able to find any reference that allows
me to determine what the commands do to be able to find out how to do it in
MS Forms. Thanks for all your assistance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.