+ Reply to Thread
Results 1 to 1 of 1

Import data from closed workbook, export data to closed workbook - rename current workbook

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Import data from closed workbook, export data to closed workbook - rename current workbook

    Hello, I have these functions working individually for the "Tank Only" and "Toolbar Only" options but run into an issue when Trying the "Tank & Toolbar" option. The line of code with the issue is "ActiveWorkbook.SaveAs Filename:=FPath & "\" & FName2" I believe this is because I am trying to create two new documents from the first original. The code Imports a serial number into textbox2 from a closed workbook, renames the file by that name and then exports data from the open workbook to the closed workbook - It does this portion correctly. Where the issue begins is when it tries to save the next serial number in textbox3. it should do the same step as previous only using the data from textbox3. I'm sure my issue is that the original file (oldname) and the textbox2 file (activeworkbook) are trying to save three documents with two strings. I think I need a step where textbox2(thisworkbook) is saved as a string like new name and textbox3 becomes the new activeworkbook. Hope this wasn't too confusing the code is below. Thanks in advance!

    Please Login or Register  to view this content.
    Last edited by UnreadSix; 03-27-2014 at 12:44 PM.

+ 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. VBA code for copy data from closed workbook to "Data " sheet of current workbook
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-13-2014, 02:23 AM
  2. Export data from closed workbook to active workbook with ADO connection
    By Naresh27 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2013, 01:08 PM
  3. Replies: 1
    Last Post: 11-26-2011, 09:10 PM
  4. How to export data to a closed Workbook
    By newbie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2005, 05:05 AM
  5. Export data to a closed workbook
    By Luis in forum Excel General
    Replies: 0
    Last Post: 05-21-2005, 09:06 AM

Tags for this Thread

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