+ Reply to Thread
Results 1 to 2 of 2

Saving Multiple Files Using a Macro

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    Portsmouth, England
    MS-Off Ver
    excel 2010
    Posts
    3

    Saving Multiple Files Using a Macro

    Hi,

    I'm still quite new using macro's and VBA so i apologize if this doesn't make a lot of sense.

    I'm trying to create a system that will allow me to enter weekly invoice information into one workbook and then export the information into the corresponding contractors invoice template saved in another workbook.

    I've managed to import the information in to the correct templates but each invoice template must be saved as the invoice number once filled.

    The invoice number is on the invoice.

    So I guess my question is, Using a macro how do I save the workbook as the contents of a cell?

    Sorry again if there not enough info still pretty new to this.

    EDIT:

    I have found part of the code which allows me to specify file name based upon a cell value.

    Public Sub SaveAsA1()
    ThisFile = Range("A1").Value
    ActiveWorkbook.SaveAs Filename:=ThisFile
    End Sub
    Now i need to specify the folder location which it will be saved in.

    Thanks for any help.
    Last edited by Bpitman; 06-07-2012 at 05:25 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Saving Multiple Files Using a Macro

    Why dont you attach a sample file?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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