sgmpatnaik
Active Member
Hell Sir,
Kindly help me about this mistake, i can't understand where is my mistake
Private Sub CommandButton1_Click()
Dim sh As Worksheet
Set sh = ActiveSheet
Worksheets(Array("Sheet1")).PrintPreview
sh.Select
ActiveSheet = MsgBox("Do you want print" & ActiveSheet.Item, vbOKCancel,"PrintPreview")
Worksheet.Item.PrintPreview True
End Sub
With Regards
Patnaik
Kindly help me about this mistake, i can't understand where is my mistake
Private Sub CommandButton1_Click()
Dim sh As Worksheet
Set sh = ActiveSheet
Worksheets(Array("Sheet1")).PrintPreview
sh.Select
ActiveSheet = MsgBox("Do you want print" & ActiveSheet.Item, vbOKCancel,"PrintPreview")
Worksheet.Item.PrintPreview True
End Sub
With Regards
Patnaik