Hi Team,
While saving a workbook via vba , I am getting one pop up message
Add Sensitivity label , how to disable this message.
via vba please help. thanks in advance !
I am getting erorr at at below line
nwbk.SaveAs Filename:=newFilePath, FileFormat:=xlOpenXMLWorkbook
Thanks
mg
While saving a workbook via vba , I am getting one pop up message
Add Sensitivity label , how to disable this message.
via vba please help. thanks in advance !
I am getting erorr at at below line
nwbk.SaveAs Filename:=newFilePath, FileFormat:=xlOpenXMLWorkbook
VBA Code:
Sub test()
Dim Cl As Range
newFilePath = "D:\output\test.xlsx"
Dim nwbk As Workbook
Set nwbk = Workbooks.Add
Dim ws As Worksheet
Set ws = nwbk.ActiveSheet
ws.Range("a1").Value = "Hi"
Application.DisplayAlerts = False
On Error Resume Next
nwbk.SaveAs Filename:=newFilePath, FileFormat:=xlOpenXMLWorkbook 'pop up message
Application.DisplayAlerts = True
End Sub
Thanks
mg