Sub SHEETDEL()
Dim response As VbMsgBoxResult
If Cells(ActiveCell.Row, 1).Value = "" Then
MsgBox "ERROR: EMPTYCELL", vbOKOnly
ElseIf ActiveCell.Row = 1 Then
MsgBox "ERROR: HEADER ROW", vbOKOnly
Else
response = MsgBox("You are about to delete the sheet " _
& Cells(ActiveCell.Row, 1).Value & vbCr & "Are you sure?", vbYesNo, "Delete Sheet???")
If response = vbYes Then
Application.DisplayAlerts = False
Sheets(Cells(ActiveCell.Row, 1).Value).Delete
Application.DisplayAlerts = True
Rows(ActiveCell.Row).EntireRow.Delete
Else
MsgBox "Thank You!!!"
End If
End If
End Sub
How to format text in bold italic and align in VB msgbox
Page 1 of 1
How to format text in bold italic and align in VB msgbox
#1
Posted 29 October 2009 - 04:12 AM
Hi, I need to highlight the message in Message box as it indicates the possibility of loss of data
. I need to highlight "You are about to delete the sheet" in bold and all the sentences center aligned. How to do??? Suggestions please...
Page 1 of 1

Start a new topic
Add Reply





MultiQuote
| 


