+ Reply to Thread
Results 1 to 4 of 4

excel file saving conditions

  1. #1
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    excel file saving conditions

    Hi,


    How to restrict to save excel file in External device (ex: usb, pen drive) and C Drive in using vba code. this macro should work on any system.

    thank you in advance


    regards
    shiva

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

    Re: excel file saving conditions

    Hi Shiva

    What exactly are you trying to achieve?
    Are you wanting the user to be allowed to save the file only to the original folder?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    Re: excel file saving conditions

    Hi,

    thank you for your reply.

    My code asks user to choose folder from system. if anyone choose any folder from usb or pen drive then macro has to give warn to user as " Pls don't select folder from USB or External Device or C drive. Choose Any folder from D/E/F Drive"

    regards
    shiva

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

    Re: excel file saving conditions

    Try this

    Paste vba into ThisWorkbook module
    Please Login or Register  to view this content.
    ThisWorkbook.jpg

+ 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] Prohibit Saving an Excel Files if Conditions not Completed
    By piermyn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2013, 08:46 PM
  2. Replies: 4
    Last Post: 11-13-2012, 09:13 AM
  3. Replies: 5
    Last Post: 09-13-2012, 11:50 AM
  4. Problem saving Excel file that copies an embedded object from a separate file
    By bhodge10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2012, 02:47 PM
  5. Creating a .txt file extracting information from a Excel file saving as .resx file
    By AbdallahHajbed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2012, 09:00 AM
  6. [SOLVED] Saving multi-tab excel file created from comma delimited text file
    By Marcus Aurelius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 01:20 PM
  7. Replies: 0
    Last Post: 03-29-2005, 11:06 AM
  8. saving an excel file as an ASCII text file without delimiters
    By Sewellst in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2005, 10:06 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