Save only 9 of 18 sheets

G

Guest

Ron
Thank You for all your help. I really appreciate it. I figured out the
command button. It was Userform1 . Show
This app is really staring to take shape!
Thanks Again
RobJ
 
R

Ron de Bruin

Hi rob

You use a cell from the sheet CASH in your save line.
If you not select this sheet in the userform to copy to a new workbook
it can't find that cell.

You can use this to avoid this problem


ActiveWorkbook.Worksheets(arr).Copy

strdate = Format(Now, " mm-dd-yy")
With ActiveWorkbook
.SaveAs "C:\" & ThisWorkbook.Sheets("CASH ").Range("C5").Value & strdate & ".xls"
.Close False
End With
 

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

Top