+ Reply to Thread
Results 1 to 6 of 6

Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen

  1. #1
    Registered User
    Join Date
    04-02-2016
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    3

    Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen

    I'm trying to write scripts in excel which can be then used in AutoCAD. So i have a range of cells in excel (column I) which i would like to save directly to a script file. I've found bits and pieces of code online and worked through it, however, i want the macro to save directly over the existing script file without displaying the save as prompt menu. This is the code i have so far which requires saving at the prompt menu. Any help would be much appreciated. I've attached the code below.

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 04-02-2016 at 08:49 PM. Reason: Please use code tags when posting code

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen

    After your Dim statements add
    Please Login or Register  to view this content.
    Before End Sub add
    Please Login or Register  to view this content.
    See if that works for you.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    04-02-2016
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    3

    Re: Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen

    Hi gmr4evr1, suppressing the alerts doesn't seem to work. I think because "Save As" is a dialog box. I was trying to insert an "Application.Activeworkbook.Saveas" statement but couldn't figure out how to save it as scr. file.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen

    If I understand your question,

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    04-02-2016
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    3

    Re: Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen

    Hi shg,
    Thanks heaps, that's perfect. i'll have to run it at work in conjunction with AutoCAD, but it seems to work like a charm.

    Thanks again.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen

    You're welcome.

+ 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] Script to save to folder in "v:\dept2", confirm file saved, then delete from "v:\dept1"
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2014, 11:42 AM
  2. Only "save" option in save prompt while closing excel sheet
    By rudswa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2013, 08:07 PM
  3. No "Save prompt" on closing Excel
    By Kevpat in forum Excel General
    Replies: 5
    Last Post: 09-12-2012, 06:06 AM
  4. [SOLVED] Macro with "save as" --- Need excel to overwrite a file without a prompt to overwrite
    By tsmith1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 10:54 AM
  5. Replies: 1
    Last Post: 03-18-2012, 11:09 PM
  6. Replies: 0
    Last Post: 11-16-2011, 01:35 PM
  7. Replies: 0
    Last Post: 07-06-2006, 04:30 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