LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default Tagt Row When data copied to another workbook

Hello, I could really use some help. I am coping data from one workbook to
another after a filter. I need to tag column M on the New Tracker workbook
with the word "sent"; only for the records that was filterd and copied.
Please see the code below. I have a arrow pointing to my BAD CODE. At the end
of this sub I want to call another sub. How do I do that also? Thanks!

Private Sub DailyReport_Click()
ActiveSheet.Range("A2").AutoFilter Field:=12, Criteria1:="<"
Range(("M6"), Cells(Rows.Count, ("M:M")).End(xlUp)) = "Sent"
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
"C:\Users\Kenny\Documents\Toyota\Floater\Daily Tracker Report.xls"
Windows("New Tracker.xls").Activate
Range(("L6"), Cells(Rows.Count, ("L:L")).End(xlUp)).Copy
Windows("Daily Tracker Report.xls").Activate
Worksheets("sheet1").Range("A5").PasteSpecial Paste:=xlPasteValues
Windows("New Tracker.xls").Activate
Range(("A6:B6"), Cells(Rows.Count, ("B:B")).End(xlUp)).Copy
Windows("Daily Tracker Report.xls").Activate
Worksheets("sheet1").Range("B5").PasteSpecial Paste:=xlPasteValues
Windows("New Tracker.xls").Activate
Range(("G6:K6"), Cells(Rows.Count, ("G:G")).End(xlUp)).Copy
Windows("Daily Tracker Report.xls").Activate
Worksheets("sheet1").Range("D5").PasteSpecial Paste:=xlPasteValues
Windows("New Tracker.xls").Activate
Range("A6").Select
'Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
'Selection.EntireRow.Delete
'Windows("Daily Tracker Report.xls").Activate
ActiveSheet.Range("A2").AutoFilter Field:=12
Application.ScreenUpdating = True
End Sub

 
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
year changes when copied from one workbook to another Pgarbarini Excel Discussion (Misc queries) 8 November 20th 08 08:33 PM
Getting Sheets Copied From One Workbook to Another Without ....? Mhz New Users to Excel 6 July 18th 06 04:39 AM
I copied a workbook to a CD. I can only access 1 worksheet. Bob Jachim Excel Discussion (Misc queries) 0 February 14th 06 01:16 AM
When Copying a sheet, the whole workbook gets copied Rugby Al Excel Discussion (Misc queries) 1 January 5th 06 01:03 AM
year changes when copied from one workbook to another Pgarbarini Excel Discussion (Misc queries) 1 March 3rd 05 08:19 PM


All times are GMT +1. The time now is 10:00 PM.

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

About Us

"It's about Microsoft Excel"