+ Reply to Thread
Results 1 to 3 of 3

Save using macro file path

Hybrid View

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    42

    Post Save using macro file path

    I want to be able to save a file using only the macro save path which I have already created.

    So how do I turn off the save, save-as, or Control C function?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Save using macro file path

    try this:

    Option Explicit
    
    Sub SaveMe()
    Dim thePath As String
    thePath = "C:\YourFilePath\"
    Dim theFile As String
    theFile = "YourFileName.xls"
    
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:=thePath & theFile
    Application.DisplayAlerts = True
    End Sub
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-06-2013
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Save using macro file path

    Alan,

    Thanks for the input. I already have a macro that saves to a file. I want to be able to disable the normal save, save-as, and Control S functions. Do you know how to do that? In other words, when the user opens the file, he/she has no choice but to run the save macro because he/she can't utilize the normal save functions.

    Thanks again.

+ 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. Save As macro with only partial file path
    By jake.newport in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2013, 03:42 PM
  2. how to specify a file save path to a save macro
    By Solidstan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-04-2013, 05:33 PM
  3. [SOLVED] VBA for file save as macro enabled to a specifi path and folders
    By stpeter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2013, 03:41 PM
  4. Macro to save sheet as CSV using a dynamic file name and file path
    By chris.tinta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2013, 10:45 AM
  5. Replies: 5
    Last Post: 03-21-2013, 07:34 AM

Tags for this Thread

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