PC Review


Reply
Thread Tools Rate Thread

Copying data from different sheets to one mastersheet

 
 
CompletelyClueless
Guest
Posts: n/a
 
      9th Sep 2008
Hi!

I'm quite noob when it comes to making VBA formulas in excel :/ so i wonder
if anyone here could help me out with this one.


I have four sheets: one master sheet "Katselu", that should collect all the
data written to other sheets. Other sheets are"Urakka","Ylityo" and
"Tuntityo".

New data is written to these different "slave" sheets row by row..and these
rows should update to the Master Sheet (eachto a new row)..perhaps when
clicking a Command button "Update" or so.....

There. I hope someone understands what i'm trying to ask/get advice here
I need all the help i can get


 
Reply With Quote
 
 
 
 
Shasur
Guest
Posts: n/a
 
      9th Sep 2008
Hi

Did you try using QueryTables. I had some similar requirement and used
querytables for it
(http://vbadud.blogspot.com/2007/12/q...ta-source.html)

Please Refer
http://msdn.microsoft.com/en-us/library/aa313439(office.10).aspx for more info

Cheers
Shasur
--
http://vbadud.blogspot.com


"CompletelyClueless" wrote:

> Hi!
>
> I'm quite noob when it comes to making VBA formulas in excel :/ so i wonder
> if anyone here could help me out with this one.
>
>
> I have four sheets: one master sheet "Katselu", that should collect all the
> data written to other sheets. Other sheets are"Urakka","Ylityo" and
> "Tuntityo".
>
> New data is written to these different "slave" sheets row by row..and these
> rows should update to the Master Sheet (eachto a new row)..perhaps when
> clicking a Command button "Update" or so.....
>
> There. I hope someone understands what i'm trying to ask/get advice here
> I need all the help i can get
>
>

 
Reply With Quote
 
CompletelyClueless
Guest
Posts: n/a
 
      9th Sep 2008
Hi Shasur!

Many thanks for the tip!

But I would instead a QueryTable prefer to use some kind of a code that
would just copy the new inserted data rows from the slave sheets and then
paste the copied rows in to the Master Sheet(in new available rows)...It
should be as easy/simple as possible.



"Shasur" wrote:

> Hi
>
> Did you try using QueryTables. I had some similar requirement and used
> querytables for it
> (http://vbadud.blogspot.com/2007/12/q...ta-source.html)
>
> Please Refer
> http://msdn.microsoft.com/en-us/library/aa313439(office.10).aspx for more info
>
> Cheers
> Shasur
> --
> http://vbadud.blogspot.com
>
>
> "CompletelyClueless" wrote:
>
> > Hi!
> >
> > I'm quite noob when it comes to making VBA formulas in excel :/ so i wonder
> > if anyone here could help me out with this one.
> >
> >
> > I have four sheets: one master sheet "Katselu", that should collect all the
> > data written to other sheets. Other sheets are"Urakka","Ylityo" and
> > "Tuntityo".
> >
> > New data is written to these different "slave" sheets row by row..and these
> > rows should update to the Master Sheet (eachto a new row)..perhaps when
> > clicking a Command button "Update" or so.....
> >
> > There. I hope someone understands what i'm trying to ask/get advice here
> > I need all the help i can get
> >
> >

 
Reply With Quote
 
Shasur
Guest
Posts: n/a
 
      9th Sep 2008
Hi

Here is a hint

Sub Copy2Master()

Dim oSht_Katselu As Worksheet
Dim oSht_Urakka As Worksheet
Dim lMax_Katselu As Long

Set oSht_Urakka = Worksheets("Urakka")
Set oSht_Katselu = Worksheets("Katselu")

' Last Row of the Master Sheet
lMax_Katselu = oSht_Katselu.Cells.SpecialCells(xlCellTypeLastCell).Row

' Here I am assuming to copy the second row of urakka after the last row of
master sheet
oSht_Urakka.Rows(2).EntireRow.Copy
Destination:=oSht_Katselu.Rows(lMax_Katselu + 1)

End Sub

I am trying to copy from one sheet to the master. You can make it for three
sheets. The challenge here for you to identify the changes that are made in
the slave sheets.
--
http://vbadud.blogspot.com


"CompletelyClueless" wrote:

> Hi Shasur!
>
> Many thanks for the tip!
>
> But I would instead a QueryTable prefer to use some kind of a code that
> would just copy the new inserted data rows from the slave sheets and then
> paste the copied rows in to the Master Sheet(in new available rows)...It
> should be as easy/simple as possible.
>
>
>
> "Shasur" wrote:
>
> > Hi
> >
> > Did you try using QueryTables. I had some similar requirement and used
> > querytables for it
> > (http://vbadud.blogspot.com/2007/12/q...ta-source.html)
> >
> > Please Refer
> > http://msdn.microsoft.com/en-us/library/aa313439(office.10).aspx for more info
> >
> > Cheers
> > Shasur
> > --
> > http://vbadud.blogspot.com
> >
> >
> > "CompletelyClueless" wrote:
> >
> > > Hi!
> > >
> > > I'm quite noob when it comes to making VBA formulas in excel :/ so i wonder
> > > if anyone here could help me out with this one.
> > >
> > >
> > > I have four sheets: one master sheet "Katselu", that should collect all the
> > > data written to other sheets. Other sheets are"Urakka","Ylityo" and
> > > "Tuntityo".
> > >
> > > New data is written to these different "slave" sheets row by row..and these
> > > rows should update to the Master Sheet (eachto a new row)..perhaps when
> > > clicking a Command button "Update" or so.....
> > >
> > > There. I hope someone understands what i'm trying to ask/get advice here
> > > I need all the help i can get
> > >
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUM of data from multiple sheets in the mastersheet Ren Microsoft Excel Programming 3 11th Jan 2008 08:58 PM
Copying Mastersheet layout to the rest of the sheets =?Utf-8?B?VG9vTg==?= Microsoft Excel Programming 0 3rd Aug 2006 11:26 AM
Copying sheets to a mastersheet Help needed auspcs Microsoft Excel Programming 2 21st Jun 2006 12:42 PM
Transfer data from mastersheet to various worksheet =?Utf-8?B?TWFuZGVlcCBEaGFtaQ==?= Microsoft Excel Discussion 1 5th May 2006 10:01 PM
Copying rows from Subsidary Files To Mastersheet with Formulas Volker Hormuth Microsoft Excel Misc 20 4th Dec 2003 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:51 AM.