Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


copy & paste data from workbooks to master workbook

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
almouchie



Joined: 02 Jan 2006
Posts: 1
Location: beirut

PostPosted: Thu Jan 05, 2006 7:28 am    Post subject: copy & paste data from workbooks to master workbook Reply with quote

[b]i want to automate this action using VBA
I have workbooks representing data about invoices
& I want to copy the data & paste them in a master workbook as a running database

the invoices have the same format (template form) so as to be user for macros

how can I do that
I need at least the schematic of the code & how to start
I already recorded macro but dont know how to manipulate it so as to pick every invoice & paste it in a row instead of just that one invocie workbook

how can I use the targetcolumn & source data in the code

appreciate any help
if u need more explaination I will provide[/b]
Back to top
View user's profile Send private message Send e-mail
Data
Moderator
Moderator


Joined: 06 Oct 2004
Posts: 33
Location: NY

PostPosted: Wed Feb 01, 2006 12:32 pm    Post subject: Reply with quote

declare sht object first then transport your data

dim sht1 as worksheet
dim sht2 as worksheet

set sht1 = worksheets(1)
set sht2 = worksheets(2)

sht1.cells(1,1) = sht2.cells(1,1)
_________________
Data
Knowledge is Power
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group