PC Review


Reply
Thread Tools Rate Thread

Copy data question

 
 
brentm
Guest
Posts: n/a
 
      12th Jun 2008
I have a workbook where each tab is a specific week with labor data and
another master tab that generates the invoice for the time over a given week.
Is there a way, from the master invoice tab, to copy the needed labor data
from the appropriate tab - possibly through a prompt or entering the week
ending date in a cell on the master tab? Each weekly tab is identical in
format with the data to be copied residing in cell range C2 - F8.

Thanks.
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      13th Jun 2008
Use an Input box like this

Sub Getweekly()

Do
Set myCell = Application.InputBox( _
prompt:="Select a Cell on a Weekly Labor Tab", _
Type:=8)

WrkSheet = myCell.Worksheet.Name

Loop While (WrkSheet = "Master Invoice")

Sheets(WrkSheet).Range("C2:F8").Copy _
Destination:=Sheets("Master Invoice").Range("C2")
End Sub


"brentm" wrote:

> I have a workbook where each tab is a specific week with labor data and
> another master tab that generates the invoice for the time over a given week.
> Is there a way, from the master invoice tab, to copy the needed labor data
> from the appropriate tab - possibly through a prompt or entering the week
> ending date in a cell on the master tab? Each weekly tab is identical in
> format with the data to be copied residing in cell range C2 - F8.
>
> Thanks.

 
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
Advanced VBA Question: Copy data to another sheet to make Validation List resendez.rene@gmail.com Microsoft Excel Programming 1 19th Oct 2006 02:40 AM
Macro question - Need to copy data & formatting to another workboo =?Utf-8?B?Um9n?= Microsoft Excel Programming 3 27th Jul 2006 04:00 PM
Copy data into cells until changes trigger new copy =?Utf-8?B?bWRlYW5kYQ==?= Microsoft Excel Programming 1 25th Apr 2005 05:40 AM
Ghost copy or image copy of my drive question Aslaner Windows XP Help 3 13th Oct 2004 01:44 PM
Copy Child DataTable?? Copy a DataColumn?? System.Data is frustrating... Cip Microsoft ADO .NET 1 27th Feb 2004 05:57 AM


Features
 

Advertising
 

Newsgroups
 


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