Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 284
Default Moving data from one workbook to another workbook

I have two workbooks, one of them is a template for invoices and the other is
for tracking those invoices. When I need an invoice I go to €śInvoice09€ť and
open a new workbook, fill it in and €śsaveas€ť. I use the address and apartment
number as the file name. I then go to €śInvoice totals€ť and enter the data
into the appropriate cells. I would like to automate the process of saving
as the address and apartment number and moving the data from the newly
created invoice to the Invoice totals workbook. The layout of the key cells
a C19 is the address, C20 is the apartment number, K6 is the date, and L52
is the total for that invoice. In the Invoice totals workbook the key cells
a Column B is the Saved AS file name, Column C is the invoice date, and
Column D is the total for each invoice. I really wish I spoke vba but€¦.. I
dont. Can some one help me out with some direction?

Mike Rogers

  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 284
Default Moving data from one workbook to another workbook

I solved the first part of getting the file saved as the address. The only
thing I did not really get worked out was the code to save it to the correct
folder. I just changed my default under tools options etc. I code I have so
far is posted below.


Private Sub CommandButton1_Click()
Dim rng As Range

Set rng = ActiveSheet.Range("N17")

ActiveWorkbook.SaveAs _
Filename:=rng.Value & ".xls", _
FileFormat:=xlWorkbookNormal
End Sub

Mike Rogers


"Mike Rogers" wrote:

I have two workbooks, one of them is a template for invoices and the other is
for tracking those invoices. When I need an invoice I go to €śInvoice09€ť and
open a new workbook, fill it in and €śsaveas€ť. I use the address and apartment
number as the file name. I then go to €śInvoice totals€ť and enter the data
into the appropriate cells. I would like to automate the process of saving
as the address and apartment number and moving the data from the newly
created invoice to the Invoice totals workbook. The layout of the key cells
a C19 is the address, C20 is the apartment number, K6 is the date, and L52
is the total for that invoice. In the Invoice totals workbook the key cells
a Column B is the Saved AS file name, Column C is the invoice date, and
Column D is the total for each invoice. I really wish I spoke vba but€¦.. I
dont. Can some one help me out with some direction?

Mike Rogers

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Within A Workbook Jasmyn Excel Discussion (Misc queries) 2 October 30th 08 03:07 PM
moving data between workbook sheets Soosieboo Excel Discussion (Misc queries) 3 September 23rd 08 10:45 PM
Moving Cell Information from one workbook into another workbook [email protected] Excel Worksheet Functions 2 January 25th 07 02:26 AM
Moving Changing data to new tab in workbook Lime Excel Worksheet Functions 0 November 23rd 05 03:33 PM
Moving one workbook page to a new workbook edver Excel Worksheet Functions 1 July 19th 05 11:47 PM


All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"