+ Reply to Thread
Results 1 to 2 of 2

Cannot save a file - error 5152

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

    Cannot save a file - error 5152

    Hi guys,


    I have an error 5152 and i can't save a word document. the line with error is " .ActiveDocument.SaveAs2 SaveName1" the error is
    Run-Time error '5152':
    This is not a valid file name.
    Try one or more of the following:
    *Check the path to make sure it was typed coerrectly.
    *Select a file from the list of files and folders.

    Please Login or Register  to view this content.
    1.png
    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: Cannot save a file - error 5152

    i solved it, i think. was an error at the name of the file

+ 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. Runtime error 1004 when trying to save file via VBA
    By avh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2015, 03:20 AM
  2. [SOLVED] Save file syntax error
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2015, 12:50 PM
  3. Save to PDF VBA error when file is transferred from XP to windows 7
    By S_Intern123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-10-2014, 04:51 AM
  4. Problem: Save As Macro that works, but end file has an error
    By Monistw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2014, 10:39 AM
  5. Getting error 400 when click the save file button
    By allenhedk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2013, 10:06 AM
  6. Excel Error on file save
    By Ninjataktikz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2012, 04:55 PM
  7. Error when trying to save file as xml data
    By hegisin in forum Excel General
    Replies: 0
    Last Post: 08-21-2007, 12:33 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