Creating macro for copying data

baseballplaya

New Member
Joined
Apr 5, 2011
Messages
3
Hello All,

I am requiring some assistance with a project that I am desigining. I attempting to log how many hours are used monthly with lawn mowers that I rent out. Each unit has a hours meter and I will input the hours each month into "equipment" sheet. I am trying to accomplish the following:

1) when I update the hours, I would like the "hour" cell to copy over to the sheet "reports"

2) Once copied, the next time I enter hours, I need the new data copied to the very next column. Example, if the current data is in d10, then the next time the macro is run I need the new info to go into e10.

To walk though this, say I enter updated hours for (Tag #68), John Deere which is in box C12. When the macro is run, it searches in sheet "Report" , column A for "68". Once found it will copy data from sheet "Equipment", column C to the next empty column in sheet "Report" in the row that contains "68". If I have confused anyone I apoligize. Please advise if you think this can be accomplished. Thank you all!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Using Windows XP and Excel 2007.

Excel Workbook
ABC
1TAG #MakeHours
212Toro235
315John Deere1,126
416John Deere652
517John Deere555
628John Deere94
744Husq211
847Husq68
948Husq29
1052Cadet55
1163Cadet94
1264John Deere44
1365Cadet1,111
1468John Deere123
1569Cadet516
1674Toro654
1775Toro215
1882John Deere1,505
1988Husq896
2089John Deere1,515
2195Toro954
Equipment
Excel Workbook
ABCDE
1TAG #1234
212235????????????
3151,126
416652
517555
62894
744211
84768
94829
105255
116394
126444
13651,111
1468123
1569516
1674654
1775215
18821,505
1988896
20891,515
2195954
Excel 2007 Reports
Excel 2007
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top