#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MsgBox

I would like the MsgBox to appear before closing Excel file.
I have this code:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
MsgBox Prompt:="CONTENT", Title:="title"
End Sub

but I want a link to www site and to e-mail address in CONTENT
Could somebody tell me how to do this?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default MsgBox

You cannot add hyperlinks to a VB message box (unless you
just want to show the text). All the MsgBox function can
do is show you text...I am unaware of any special text
formatting that can be applied - but if there is, I would
love to see it too :-).

You have to create a userform and put your link there.

Seth


-----Original Message-----
I would like the MsgBox to appear before closing Excel

file.
I have this code:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
MsgBox Prompt:="CONTENT", Title:="title"
End Sub

but I want a link to www site and to e-mail address in

CONTENT
Could somebody tell me how to do this?

thanks
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I get a msgbox? AND Excel Discussion (Misc queries) 0 February 12th 09 12:47 PM
MsgBox CC Excel Discussion (Misc queries) 4 May 5th 06 05:45 PM
msgbox flow23 Excel Discussion (Misc queries) 0 January 10th 06 03:25 PM
MsgBox Dave Peterson[_3_] Excel Programming 0 July 23rd 03 02:11 AM
MsgBox Phil Perry Excel Programming 1 July 9th 03 07:38 PM


All times are GMT +1. The time now is 07:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"