+ Reply to Thread
Results 1 to 7 of 7

my first macro excel -> pdf needs improvement

  1. #1
    Registered User
    Join Date
    05-14-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    94

    my first macro excel -> pdf needs improvement

    Hi
    I´ve written a macro Excel -> .pdf
    Please Login or Register  to view this content.
    My questions are:
    1) the micro works, but do you think that is experienced programmers to code can be improved? so, how?
    2) I wish only the select saved to .pdf, and not the whole sheet, as now. How can I rewrite the code?

    Thanks in advance
    /Peter

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: my first macro excel -> pdf needs improvement

    Hi Peter

    Try this...
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: my first macro excel -> pdf needs improvement

    Try :

    Please Login or Register  to view this content.
    This will also work (but it depends on whether the default values work for you)
    Please Login or Register  to view this content.
    If a response has helped then please consider rating it by clicking on *Add Reputation below the post
    When your issue has been resolved don't forget to mark the thread SOLVED (click Thread Tools at top of thread)

  4. #4
    Registered User
    Join Date
    05-14-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: my first macro excel -> pdf needs improvement

    Thanks Kevin, but no dice. I get error and document wasn´t saved

  5. #5
    Registered User
    Join Date
    05-14-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: my first macro excel -> pdf needs improvement

    Hi John!
    your code
    Please Login or Register  to view this content.
    works :-)
    Thanks for your help!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: my first macro excel -> pdf needs improvement

    You're welcome...glad I could help. Thanks for the Rep.

  7. #7
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: my first macro excel -> pdf needs improvement

    Why did my macro fail?
    Which error did you get?
    Last edited by Kevin#; 05-14-2016 at 07:52 AM.

+ 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 VBA Export Certain Worksheets as New Workbook - Improvement
    By ericbartha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-18-2015, 01:11 PM
  2. Excel DataBase for Home Improvement Co.
    By cepoux in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 10:37 PM
  3. [SOLVED] Macro for transfering data, Help with improvement of speed
    By 2001jesper in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2013, 07:49 AM
  4. Macro speed improvement
    By YounesB3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2013, 07:01 PM
  5. Pivot table improvement and formula improvement
    By constructionsheets in forum Excel General
    Replies: 0
    Last Post: 10-22-2011, 07:06 PM
  6. Speed Improvement - Macro extract higher/lower values and note time differences
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 07-10-2009, 08:50 AM
  7. Excel Improvement Suggestion
    By Carol in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2006, 06:00 PM

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