Workbook addition

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am new to VBA Programming.. In my program i need to open some workbooks
between specific dates which i am givin input. The name of the new workbook
should be the date and the contents of the new workbook are same as the
active workbook..
Please help me in creating the new workbook part alone rest all i have done.
If you could provide me some code snippets that would be of much use.

thanks
 
Dim filePath As String, fileName As String
filePath = "C:\"
fileName = Format(Date, "yyyymmdd") & ".xls"
ActiveWorkbook.SaveAs fileName:=filePath & fileName
 
Hi Nigel,

Thanks so much for your quick response..
I got it.. Thanks again.. I am very much excited.. thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top