Run time Error "1004":

S

Surabhi

Hello All,

This is regarding a error - Run time Error "1004" when i ran a macro.
When i debugged the macro it says "Workbooks(wbn).SaveAs (sFileName)".
Can anybody tell the possible cause of error.

Regards,
Surabhi
 
D

Dave Peterson

Maybe wbn doesn't hold what you think -- not an open workbook name--and make
sure that wbn includes the extension)

Maybe sFileName doesn't hold what you think--invalid characters in the name???
 

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