+ Reply to Thread
Results 1 to 2 of 2

run-time error '1004' application-defined or object-defined error - Excel 2007

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Post run-time error '1004' application-defined or object-defined error - Excel 2007

    Hi,

    I am trying to save my current sheet1 to PDF and attach to Outlook. The error occurs on

    ActiveSheet.ExportAsFixedFormat _
    Type:=xlTypePDF, _
    FileName1:=FName

    I believe it has to do with my Range, because i tested the code with a new file with a single cell filled out and it worked. How can i fix it?

    Thanks!
    Last edited by kaurka; 11-05-2012 at 11:16 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: run-time error '1004' application-defined or object-defined error - Excel 2007

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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