Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Copy data question

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Copy data question

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
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
copy down question [email protected] Excel Worksheet Functions 6 January 28th 09 12:56 AM
Advanced VBA Question: Copy data to another sheet to make Validation List [email protected] Excel Programming 1 October 19th 06 02:40 AM
Macro question - Need to copy data & formatting to another workboo Rog Excel Programming 3 July 27th 06 04:00 PM
copy question srroduin Excel Programming 2 April 26th 06 09:27 PM
copy question Gary Keramidas[_4_] Excel Programming 7 October 8th 05 02:07 AM


All times are GMT +1. The time now is 01:39 PM.

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

About Us

"It's about Microsoft Excel"