+ Reply to Thread
Results 1 to 2 of 2

Open a new workbook, save with date from cell in workbook.

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    NE
    MS-Off Ver
    2013
    Posts
    42

    Open a new workbook, save with date from cell in workbook.

    I have VBA code to open a new workbook here is my problem:

    I want open a new workbook(2) and save it with a date to be pasted in B1.

    I want to then activate workbook(1) and copy selected cells and paste them into workbook2.

    Then save workbook2 with the following title (SF_GR110_MMDD)

    What I am trying to accomplish is not overwriting this file every time it is created.

    Here is the code I have already:

    Please Login or Register  to view this content.
    Thanks for any help.

    I have been trying this code in the file name but it gives me a Syntax error
    - plus I can't figure out how to make the file save revert back to the date:

    Please Login or Register  to view this content.

    Here is what I did:

    Please Login or Register  to view this content.
    Last edited by rlh; 08-22-2013 at 10:16 AM. Reason: solved it on my own

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

    Re: Open a new workbook, save with date from cell in workbook.

    Thanks for posting the solution.

    In future, you can post the solution as post 2, so its clear which is the question and which is the solution.
    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)

Similar Threads

  1. How to open,save and close another workbook from the current workbook using macro?
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2012, 10:42 AM
  2. Always open workbook Macro to save as date and start a new day
    By JazzyBear in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2012, 08:08 AM
  3. Save an open workbook, then open template workbook and close the saved workbook
    By ondvirg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 10:20 PM
  4. open workbook then save as different workbook dependant on a1
    By excellentexcel in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-15-2009, 09:15 AM
  5. Using interop.excel to open a workbook, the workbook doesn't ask to save changes.
    By milmans@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2005, 06: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