Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Print button on a msgbox

Is it possible to have a print button in a MsgBox, or do I have to use a form?

Thanks for suggestions.

Frank


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Print button on a msgbox

You could use a Msgbox

Dim ans

ans = MsgBox("Print?", vbYesNo)
If ans = vbYes Then
ActiveSheet.PrintOut
End If

but a form would be neater.


--
HTH

Bob Phillips

"Frank" wrote in message
...
Is it possible to have a print button in a MsgBox, or do I have to use a

form?

Thanks for suggestions.

Frank




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print button on a msgbox


Private Sub CommandButton1_Click()
Var = MsgBox("print..?", vbYesNo)
If Var = vbYes Then
' print macro code here
Else
Exit Sub
End If
End Sub


Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=376248

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
print button macro & specific tabs to print Chuck[_3_] Excel Worksheet Functions 2 November 22nd 07 12:21 AM
msgbox button constants Justin Excel Programming 2 May 16th 05 08:49 PM
Customize a button on a MsgBox? quartz[_2_] Excel Programming 3 January 10th 05 10:06 PM
Msgbox button labels Marcotte A[_2_] Excel Programming 4 June 8th 04 08:29 AM
Cancel button to bypass MsgBox Myrna Rodriguez Excel Programming 3 June 2nd 04 09:44 PM


All times are GMT +1. The time now is 06:31 AM.

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

About Us

"It's about Microsoft Excel"