+ Reply to Thread
Results 1 to 6 of 6

SaveAs2 macro not working

  1. #1
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    SaveAs2 macro not working

    Hi guys,

    I had my windows been wiped out and it seems that this macro doesnt work anymore.

    Before it worked correctly.

    Can you pls advise what is wrong here? The error appears on these lines--basicaly cant save the files etc.

    1 wdDoc.SaveAs2 directory & "\" & newName, FileFormat:=17

    2 wdDoc.Close SaveChanges:=False
    Please Login or Register  to view this content.
    Thanks you,
    Ionut
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

  2. #2
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Macro that doesnt work anymore--PDF Exporting Macro

    Another version that i have, the same is not working.

    Thank you for your advise,
    Ionut

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro that doesnt work anymore--PDF Exporting Macro

    This is a Word question, not Excel.

    I'll move the thread to the Word Sub forum
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: SaveAs2 macro not working

    Try:
    Please Login or Register  to view this content.
    Last edited by macropod; 03-30-2017 at 06:57 PM.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: SaveAs2 macro not working

    Hi Paul,

    Thanks for your reply. I need the macro to do a loop into my folder and all of the word docs to be exported as pdf.

    I run your macro and it run only one file.

    Thank you,
    Ionut

  6. #6
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: SaveAs2 macro not working

    sorrry! it worked perfectly. I dont know what my notebook have.

    thank you! I really appreciate it!!1


    Ionut

+ 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] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  2. Hide Columns Macro - Working on Windows not working on Mac OSX
    By bcadar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-08-2016, 09:05 AM
  3. .SaveAs2 in excel with txtBox.Value
    By cvelle89 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2015, 10:28 AM
  4. Replies: 7
    Last Post: 03-18-2015, 03:41 PM
  5. UserForm help with SaveAs2/Pulling info from Word into Excel
    By enigmaes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2014, 12:40 AM
  6. Replies: 1
    Last Post: 05-27-2014, 02:40 PM
  7. [SOLVED] Macro to merge duplicate rows unique values - current macro not working
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2013, 03:42 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