Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Excel macros VBA
i am working on a macro that will transfer the data from multiple workbook files with differents worksheets to one work book with 2 worksheet
Example
Like i have 3 workbooks as
(A)sales order with coulmn
(1.)orderno
(2.) orderdate
(3.)shipto
 
(B) shipment
(1.)shipmentdate
(2.)quantity
(3.)orderno
 
(C)third workbook delivery
(1.)deliveryboy
(2.)deliverydate
(3.)orderno
 
with only one sheet1 with information
 
and i want to send the data from these file with unique key validation to fourth file called tracker
which has two sheets
1. shipment having coulmn like shipto , deliverydate , deliveryboy , quantity ,orderno not in orderly manner manner
2. ordering having coulmns orderno , orderdate , orderno
and according to name of the coulmn
 

i have just started vba .Please some body help me out.i am beginner in this . just know beginner stuff.
 

thanks you
Akshay sharma
Posted 22-Oct-12 3:20am
aksh619297
Edited 22-Oct-12 21:45pm
v2
Comments
Maciej Los at 22-Oct-12 13:52pm
   
Please, provide more details, example data (before and after transfer).

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

One of the easiest way to learn VBA functions quickly is to use the Macro record feature of Excel thus:
  1. Select Tools -> Macro -> Record New Macro from the menu.
  2. Perform whatever functions you need in your workbooks/sheets.
  3. Press the stop recording button.
  4. Open the new macro in the editor to see the code, and modify as necessary.
  Permalink  
Comments
aksh619 at 23-Oct-12 5:57am
   
i need a VBA Code..
Richard MacCutchan at 23-Oct-12 6:13am
   
And I have just shown you how to create it, the rest is up to you.
aksh619 at 23-Oct-12 6:17am
   
thanks Richard .. really appriciate your help...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 334
2 CPallini 275
3 DamithSL 230
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100