+ Reply to Thread
Results 1 to 2 of 2

Run-Time Error'-2147221080(800401a8)': Automation Error

  1. #1
    BEEJAY
    Guest

    Run-Time Error'-2147221080(800401a8)': Automation Error

    The following code gives the error message.
    I thought at first it had to do with saving to an existing file that was
    protected, so I changed the code so that the original QCNum.xls file
    is deleted.
    The with-end with statement is used elsewhere in the macro and works fine.
    Why does this particular one cause and error? and how to 'correct' it?

    'Updated info has been 'transfered' into QCNum_1, so name it
    'QCNUM.xls, and protect it
    With myQCNum_1
    .SaveAs ([QCNum.xls"])
    .Close SaveChanges:=True
    End With


  2. #2
    Charlie
    Guest

    RE: Run-Time Error'-2147221080(800401a8)': Automation Error

    .SaveAs "QCNum.xls"


    "BEEJAY" wrote:

    > The following code gives the error message.
    > I thought at first it had to do with saving to an existing file that was
    > protected, so I changed the code so that the original QCNum.xls file
    > is deleted.
    > The with-end with statement is used elsewhere in the macro and works fine.
    > Why does this particular one cause and error? and how to 'correct' it?
    >
    > 'Updated info has been 'transfered' into QCNum_1, so name it
    > 'QCNUM.xls, and protect it
    > With myQCNum_1
    > .SaveAs ([QCNum.xls"])
    > .Close SaveChanges:=True
    > End With
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1