+ Reply to Thread
Results 1 to 3 of 3

Macro to create new WorkBook and SaveAs file

  1. #1
    Registered User
    Join Date
    06-26-2007
    Location
    Houston, Texas
    MS-Off Ver
    Office 2010
    Posts
    2

    Macro to create new WorkBook and SaveAs file

    Hello,

    I am building a Purchase Order Template for my office. Please understand the only training I have in VBA is what I have learned by reading and copying codes from this forum. That being said, I know a lot of my code is very inefficient, but I'm ok with that for now.

    The issue I am trying to resolve today is, because I have so much code, my "BlankPO" file is getting rather large. It will only get larger as I start adding real vendor information. I currently have code that will save the file as a file name that is determined by data in certain cells to a location on my server. However these files have way too much information in them. I would like to have VBA code that will open a new workbook, give it a SaveAs name, and copy only the sheet labeled "PO Copy", then save it to my server as a xlsx file, not a xlsm. Attached is a copy of my file.

    I hope my question and request makes sense.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to create new WorkBook and SaveAs file

    Please Login or Register  to view this content.
    Last edited by patel45; 11-21-2013 at 02:45 AM.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    06-26-2007
    Location
    Houston, Texas
    MS-Off Ver
    Office 2010
    Posts
    2

    Re: Macro to create new WorkBook and SaveAs file

    Thank Patel45!! That did the trick.

+ 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. Macro: SaveAs: how to keep file open after saved?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2010, 04:38 PM
  2. Macro to create a shortcut to insert any file into current excel workbook?
    By matt.will in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2007, 03:19 PM
  3. Macro to create a new file, saveas and close file
    By kaismum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2006, 09:34 AM
  4. Replies: 1
    Last Post: 10-17-2005, 04:05 AM
  5. workbook saveas function, xlText file format
    By Massimo Bassini in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2005, 01: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