+ Reply to Thread
Results 1 to 6 of 6

Need help in saving files multiple time together from an excel tool

  1. #1
    Registered User
    Join Date
    05-21-2016
    Location
    Delhi, India
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Unhappy Need help in saving files multiple time together from an excel tool

    Hello Experts,

    I am new to VBA/MACRO as well as to this Forum. Need your help in resolving one of my issue in Excel VBA.

    We have Excel tool(TICKLE) from my company which is made of 1000s of MACROs and 100s of files and is extremely slow because of being such a heavy tool. We use this tool many times for multiple Scenarios to calculate multiple things. So as this tool is very slow I have made another tool which runs TICKLE multiple times automatically with different inputs which is running pretty good. TICKLE tool has one macro which is used to collect all the relevant info from all the files and export this to single file which can be imported later for usage. To save this file it prompts and asks for location and filename to save it.
    So when I run my new tool to run TICKLE multiple times, it everytime asks for location and filename which stop my continuous running tool. Below is the syntex to export/save this file:

    Please Login or Register  to view this content.
    Now, My question is, how we can modify above syntax to stop this prompt to ask for location and filename? I want this MACRO to take location and filename from the specified location and save it without prompting anything and If i run it 10 times in a single go, It should save 10 files at the specified location.

    Thanks in advance.
    Last edited by Ashwani05; 05-23-2016 at 01:50 AM.

  2. #2
    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: Need help in saving files multiple time together from an excel tool

    Hi, and welcome to the forum.

    Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    That said, don't use the GetSaveAsFilename, just use the ActiveWorkbook.SaveAs FileName:="whatever"

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need help in saving files multiple time together from an excel tool

    Replace that code with just this...
    Please Login or Register  to view this content.
    This presumes the file name in that cell changes each time you run the code.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    05-21-2016
    Location
    Delhi, India
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Need help in saving files multiple time together from an excel tool

    Thanks Richard for your response. I have edited my post. Could you give me complete syntex as I am not getting it:

    are you saying that in my syntax, I should replace "GetSaveAsFilename" with "ActiveWorkbook.SaveAs FileName:=". Everything else will remain same??

  5. #5
    Registered User
    Join Date
    05-21-2016
    Location
    Delhi, India
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Need help in saving files multiple time together from an excel tool

    Hi AlphaFrog,

    Your syntax is only for assigning the name to the file.. correct? not for saving the file. Please excuse if my questions are really silly. I am very new to EXCEL MACRO.

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need help in saving files multiple time together from an excel tool

    Quote Originally Posted by Ashwani05 View Post
    Hi AlphaFrog,
    Your syntax is only for assigning the name to the file.. correct? not for saving the file.
    Yes, syntax is only for assigning the name to 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. Saving multiple selected worksheets from a listbox as separate excel files
    By dylanrose in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2015, 10:11 PM
  2. Replies: 3
    Last Post: 06-20-2013, 09:23 AM
  3. Replies: 1
    Last Post: 02-29-2012, 01:15 PM
  4. Replies: 1
    Last Post: 02-19-2010, 06:08 PM
  5. Saving Excel files takes a huge amount of time
    By Heavy Excel user in forum Excel General
    Replies: 6
    Last Post: 01-12-2006, 08:15 AM
  6. Saving and Closing multiple files and Excel program
    By Roger in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2005, 11:05 PM
  7. Importing/saving multiple files in Excel w/ macro
    By Mike M in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2005, 11: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