+ Reply to Thread
Results 1 to 10 of 10

convert range to pdf and save with the required name.

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,171

    convert range to pdf and save with the required name.

    Hello experts
    I have recorded a macro to save this file in a different folder. I want the name of the pdf to include a cell reference (J8) along with the date which is in cell (O7).The saved pdf file name must look like Rajesh / 001 dated 8th July 23. I need your expertise to edit this recorded macro and get the expected result.
    Thank you in advance.
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 09-05-2023 at 12:06 PM. Reason: #Solved
    "Where there is a will there is a way".

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Hello, try this ...


    A VBA demonstration as a beginner starter :

    PHP Code: 
    Sub Demo1()
        
    MsgBox [J8] & Format([O7], """ dated ""yyyy-mm-dd"" .pdf""")
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: convert range to pdf and save with the required name.

    Re: "save this file in a different folder"
    Maybe I misread your post but is it right that the path/folder is: "C:\WhereInTheHeckDoesThisGo"?
    The inherent weakness of the liberal society: a too rosy view of humanity.

  4. #4
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,171

    Re: convert range to pdf and save with the required name.

    Removed as not working.
    Last edited by RAJESH SHAH; 09-05-2023 at 06:58 AM.

  5. #5
    Valued Forum Contributor MikeVol's Avatar
    Join Date
    12-30-2020
    Location
    Odessa / Ukraine
    MS-Off Ver
    MSO Prof Plus 2021 x64 (En)
    Posts
    475

    Re: convert range to pdf and save with the required name.

    There are many threads on this forum that are similar to your question. Is it really so hard for you to read similar topics with questions about converting and saving to PDF format and write something of your own code for your needs? And do not run to this forum with the same simple questions (such as how to enter data in the first empty cell and similar simple questions). It's time to create something of your own. And don't tell me that you have a YouTube page where you kind of help other users. For such an amount of time and the topics you created, you should have already become the Guru of this business (Excel and VBA). Or am I wrong?

  6. #6
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,171

    Re: convert range to pdf and save with the required name.

    I have posted this in another forum for the solution. Only if some of the members could concentrate more on the solution it would have been solved. Now some people just want to throw some or the other comment or the other on my posts. It has become a trend now. I didn't know there was a limit to ask for solutions. If some of the members feel they don't like answering please don't. At least don't judge me. You can avoid my posts if you wish. I am what I am. Thanks anyways for all the beautiful comments.
    https://www.facebook.com/groups/3932...omment_mention
    Last edited by RAJESH SHAH; 09-05-2023 at 11:28 AM.

  7. #7
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,171

    Re: convert range to pdf and save with the required name.

    The query is solved.

  8. #8
    Valued Forum Contributor MikeVol's Avatar
    Join Date
    12-30-2020
    Location
    Odessa / Ukraine
    MS-Off Ver
    MSO Prof Plus 2021 x64 (En)
    Posts
    475

    Re: convert range to pdf and save with the required name.

    @RAJESH SHAHWell, Well, we are waiting for another 100 posts from you to reach this figure of 2000 posts, a round number still looks prettier. But your post from your other topic,
    Quote Originally Posted by RAJESH SHAH View Post
    I am not sure how to write the code but maybe I understand I have to add last row in this line.
    Please Login or Register  to view this content.
    with so many of your posts on this forum, is generally beyond all praise. Keep it up!
    Last edited by MikeVol; 09-05-2023 at 12:41 PM.

  9. #9
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: convert range to pdf and save with the required name.

    Re: "The query is solved."
    After just about 2.000 posts you know full well that it is common courtesy to show the code that made your problem go away for other people that come here with the same problem.
    I have a strong feeling that you use these forums for people to do your work for you instead of you putting some effort into finding a solution yourself. If they feel like doing that, nobody will stop them from doing so of course.
    The sad part is that they could be helping someone that really is at their wits end with a problem and really need help from an outsider.

  10. #10
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,171

    Re: convert range to pdf and save with the required name.

    # Solution
    Please Login or Register  to view this content.

+ 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. [SOLVED] Convert range to PDF and save
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-16-2023, 06:02 PM
  2. Convert Range to HTML, then paste to Word, then Save as PDF
    By Lee_of_Excel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-07-2021, 12:28 AM
  3. To convert a column to a format required
    By balaji2285 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-06-2013, 05:55 AM
  4. [SOLVED] I’m stuck…Trying to convert time to a required format...
    By jai.anand@aol.in in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-26-2012, 10:45 AM
  5. Formula required to convert range of values
    By gcexcel in forum Excel General
    Replies: 1
    Last Post: 01-14-2012, 02:22 PM
  6. Excel Save As... Help required
    By mofflin in forum Excel General
    Replies: 3
    Last Post: 02-09-2005, 09:05 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