+ Reply to Thread
Results 1 to 2 of 2

saving vbs for Workbook that filename always changes

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    41

    saving vbs for Workbook that filename always changes

    Hi,

    I am newbie to vba. i have a script that mass perform some jobs on a workbook. Everyday, i will receive the file from users with different filenames. But the vba script does the same thing for each file as the file were saved with same columns and format. So the question is where do i save the vba script and how do i run it, so that when i open the files and click on vba, it will perform the task on the particular active workbook?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: saving vbs for Workbook that filename always changes

    Will need more details and perhaps sample workbook to give you more specific answer.

    Personally, I'd create dedicated folder. Dump workbook(s) to be processed there. And use DIR() function or other means to process all file located in the folder.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ 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] Retrieving data from workbook and saving as txt with initial filename
    By anghicole in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2014, 05:30 AM
  2. Saving a workbook before clearing data with the filename.
    By frankraimondi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2013, 08:27 AM
  3. Replies: 0
    Last Post: 11-01-2012, 09:28 AM
  4. Saving workbook as notepad using cell data for filename & retaining original workbook name
    By peterkerr_13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-26-2012, 08:07 AM
  5. Help with formula of filename and saving filename as current time
    By hqradio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2012, 06:10 AM
  6. Saving sheets to seperate filenames using current workbook filename
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2007, 09:49 AM
  7. Replies: 2
    Last Post: 01-09-2006, 01:00 PM
  8. [SOLVED] Saving FileName
    By CyndyG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2005, 05:06 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