+ Reply to Thread
Results 1 to 5 of 5

Macro Error

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    India
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    24

    Macro Error

    In the attached macro when I click on Generate Pdf we are getting a Run time error. Kindly help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro Error

    your code is correct, check value on sheet Format_1 cell K19
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,937

    Re: Macro Error

    ExcelToPDF ToPDFWorkSheet.Range("B5").Value , PdfFilePath
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    03-15-2012
    Location
    India
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    24

    Re: Macro Error

    TY Proton, sorry still unable to make it work... Kindly explain...

  5. #5
    Registered User
    Join Date
    03-15-2012
    Location
    India
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    24

    Re: Macro Error

    Friends Thank you its working but still its printing only 1 Page i.e. the last page mentioned in the Range. It is supposed to print all the pages mentioned in the range on Format_1 worksheet K19 to K20...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  2. [SOLVED] Simple Calendar pop up macro --> error Run-time error '424': Object required
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 10:38 AM
  3. Print Macro / module error & Update / Clear Macro error
    By mal.b.graham in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-28-2012, 06:40 PM
  4. [SOLVED] Macro error - Run time error 1004 (App defined/Object Defined error)
    By jlax34 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2012, 03:02 PM
  5. Excel Macro Error - Run time error 1004 - Paste method of worksheet class failed
    By kvflynn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 10:51 AM

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