Results 1 to 6 of 6

Run time error 1004 and i cant figure out why??

Threaded View

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    denver co
    MS-Off Ver
    2013
    Posts
    5

    Exclamation Run time error 1004 and i cant figure out why??

    hey everybody.
    Okay so Im having issues with trying to save my invoice sheet as a new workbook. i have got it so i can change my invoice number since its just invoices. but when i try and run a macro that is supposed to save the sheet as a new workbook it comes up with runtime error 1004 and tells me to check a bunch of stuff and after going through it all i cant figure it out. please help me out.

    p.s. this is the code im using and the bold part is what gets highlighted when i debug.
    Sub SaveInvWithNewName()
        Dim NewFN As Variant
        Dim sfile As String
        ' Copy Invoice to a new workbook
        ActiveSheet.Copy
        NewFN = "C:\Users\Owner\Documents\roof_invoices\" & Range("A14").Value & ".xlsx"
        ActiveWorkbook.SaveAs NewFN, FileFormat:=xlExcel8
        ActiveWorkbook.Close
    End Sub
    Last edited by vmandonado; 10-02-2014 at 12:52 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sort Macro Run-time error '1004': Application/Object-defined error.
    By sam1212 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2014, 10:05 AM
  2. Vlookup in VBA error 1004 - can't figure out what's wrong.
    By lordterrin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2014, 02:23 PM
  3. [SOLVED] Advanced Filtering -Runtime Error 1004. Cannot figure out why will not work.
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2013, 08:00 AM
  4. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  5. run-time error '1004': Application-defined or object-deifined error
    By rich5665@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2005, 05:05 PM

Tags for this Thread

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