Friday, March 22, 2013

How to Add a Workbook with Single Sheet

Excel VBA Macro to Add a Workbook with Single Sheet
Sub WbkWithSingleSheet()
Workbooks.Add(xlWBATWorksheet).SaveAs _
FileName:="C:\Documents and Settings\Administrator\My Documents\Sample", _
FileFormat:=xlOpenXMLWorkbookMacroEnabled
End Sub

'You can change your File Path which is colored above.

Thanks Tamatam

No comments:

Post a Comment

Hi User, Thank You for visiting My Blog. Please post your genuine Feedback or comments only related to this Blog Posts. Please do not post any Spam comments or Advertising kind of comments which will be Ignored.