Page 1 of 1

VBA and the Prompt method

Posted: Sat Aug 19, 2006 5:09 pm
by wdfiller
ActiveDocument.Utility.Prompt "message"
Activedocument.Utility.Getstring

I have a program written that searches for a particular text value (or mtext value) in a document. It works fine but I am having one problem with the command prompt. If I try to issue a getstring command after using the prompt command I get an error. For some reason the getstring command is showing up on the same line as the prompt command like it needs a carriage return. I can't find anything that issues a carriage return in VB (ie the space bar) Anyone got a clue?

Posted: Tue Aug 22, 2006 6:05 pm
by gsprink
Try vbCr