![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 19
|
i need a macro that will print, but before it doe's it needs to ask the user to confirm it. The area to print will already have been choosen before, so the macro should just print print.
|
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Try the following:
Code:
Sub printin()
Select Case MsgBox("Are you sure you want to print?", vbYesNo)
Case vbYes
ActiveSheet.PrintOut
Case vbNo
End Select
End Sub
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|