G
gravesen
Hi I am trying to make an dialog box with a ok and a cancel box.
If I press the ok button I would like to rund the letter_enquiry.do
and if I hit cancel nothing will happen.
This is the code I have right now just with a msgbox and a ok
Can anyone help me with this
Sub letterofenquiry()
'
' Letterofenquiry Makro
' Makro indspillet 16-03-2004 af Lars Gravesen
Dim letterofenquiry As Object
MsgBox "Microsoft Excel is not currently running."
Set letterofenquiry = CreateObject("word.application")
letterofenquiry.Documents.Add ThisDocument.Path & "\"
"letter_enquiry.dot"
letterofenquiry.Visible = True
NewTemplate = False
DocumentType = 0
End Sub
Thanks
Lars Gravese
If I press the ok button I would like to rund the letter_enquiry.do
and if I hit cancel nothing will happen.
This is the code I have right now just with a msgbox and a ok
Can anyone help me with this
Sub letterofenquiry()
'
' Letterofenquiry Makro
' Makro indspillet 16-03-2004 af Lars Gravesen
Dim letterofenquiry As Object
MsgBox "Microsoft Excel is not currently running."
Set letterofenquiry = CreateObject("word.application")
letterofenquiry.Documents.Add ThisDocument.Path & "\"
"letter_enquiry.dot"
letterofenquiry.Visible = True
NewTemplate = False
DocumentType = 0
End Sub
Thanks
Lars Gravese