Consulting

Results 1 to 2 of 2

Thread: Exel File Corrupt when opening

  1. #1

    Exel File Corrupt when opening

    When I save an excel file using a macro and try to open up later it says my file is corrupt. But if I save a file without the SaveAs in the macro it opens up normal.

    Here is my code for the save as. Does anyone see anything out of the ordinary?
    ActiveWorkbook.SaveAs ("H:\FINAID\" & myFileName & ".xlsx")

  2. #2
    VBAX Regular
    Joined
    Jun 2013
    Posts
    40
    Location
    Try

    ActiveWorkbook.SaveAs ("H:\FINAID\" & myFileName & ".xlsm")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •