+ Reply to Thread
Results 1 to 7 of 7

An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    Canberra
    MS-Off Ver
    2016-365
    Posts
    22

    An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

    Hi All those way smarter than me.

    i have without much success been trying to make a macro that will save the active sheet of a multi sheet workbook.
    i have made this rubric for marking my students work.
    on one sheet i enter numbers. these are reflected in a designed rubric on another sheet.
    so when on the rubric sheet i can select a student from a dropdown list and it changes to reflect his grades.
    what i am now trying to do is make a macro that then saves the rubric as a PDF in landscape format and with the save as name taken from
    where i select the students name.
    i have tried running a macro with no success and i am so not understanding that some of the stuff i see online i have not been able to do.
    i am using Mac excel version15.22 can anyone give me some ideas as to where to start.
    i have tried. any help would be a weight lifted.


    Sub SavePDF()
    '
    ' SavePDF Macro
    '

    '

    ActiveWorkbook.SaveAsFixedFileFormat Type:=xlPDF, Filename:= _
    Range("H4").Text, FileFormat _
    :=xlPDF, PublishOption:=xlSheet
    End Sub

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

    So what is the value in cell H4?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    05-18-2017
    Location
    Canberra
    MS-Off Ver
    2016-365
    Posts
    22

    Re: An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

    Hi Kev

    the value in H4 is a drop down list of student names.
    when i change the student name the rubric changes and i am then able to write comments about students and then i manually go through the process of saving rubric.
    first i have to go to page set up and click okay on landscape ( not sure why i have to do it each time ) then file save as PDF then select worksheet then put in students name as the save name and then direct to folder i am needing.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

    this works for me (in Windows)

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-18-2017
    Location
    Canberra
    MS-Off Ver
    2016-365
    Posts
    22

    Re: An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

    Hi Kev
    i ran that code and got runtime errors
    tried changing a few things and still no dice.
    i am sure it is the mac thing.

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

    From reading around there appears to have been several issues related to Mac saving as PDF.
    Ron de Bruin is very knowledgeable - this link may help with your problem

  7. #7
    Registered User
    Join Date
    05-18-2017
    Location
    Canberra
    MS-Off Ver
    2016-365
    Posts
    22

    Re: An everything Macro. Save as PDF, in Landscape, from Cell let me choose the folder.

    Thank you Kev
    That link was so much help and yet so teasing. It showed me that what i would like to do is capable yet i am so new to this that i dont even know the right questions to ask.
    For example.
    The ADDIN when i press the button it brings up the outlook new mail with the worksheet saved as using the date as the saved as name.
    My issue is i want the saved as name to be taken from cell (H4). I am unable to change the ADD-IN.
    So i am after VBA to open my outlook mail with the worksheet saved as (H4) and attached.
    Maybe it could put the same name in the send to on the mail.

+ 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] VBA Code to save to a folder within a folder within a folder all based on cell values.
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-24-2016, 04:24 PM
  2. Choose Folder, Then Save Multiple File Types There
    By cayleigh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2015, 12:25 PM
  3. Let User Choose Folder to Save, but not File Name
    By FallingDown in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-09-2014, 11:14 AM
  4. [SOLVED] Save as PDF to a folder I choose
    By vbanewbie! in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2013, 04:02 PM
  5. Macro to save to PDF and retain 11x17 landscape
    By Dougl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2012, 06:52 PM
  6. Replies: 0
    Last Post: 04-16-2012, 10:57 AM
  7. BeforeSave and SaveAs to either save at predefined folder or let the user choose
    By Snyder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2010, 07:18 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