Automating & Learning

firef0x

New Member
Joined
Dec 5, 2018
Messages
1
Hello I recently have started a new job that requires me to use a lot of excel for my day-to-day.. I've learned so much, and I'm starting to watch videos and learn even more than I could imagine. I'm stuck though on an issue I would like to be able to automate.

I have this daily report.. It has columns with the day of the month and the date
and then it has on Column A a Task List.

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]SUN[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THURS[/TD]
[/TR]
[TR]
[TD]TASK[/TD]
[TD]1st[/TD]
[TD]2nd[/TD]
[TD]3rd[/TD]
[TD]4th[/TD]
[TD]5th[/TD]
[/TR]
[TR]
[TD]WORK[/TD]
[TD]W[/TD]
[TD]STOP[/TD]
[TD]W[/TD]
[TD]W[/TD]
[TD]W[/TD]
[/TR]
[TR]
[TD]AUDIT[/TD]
[TD]STOP[/TD]
[TD]SDO[/TD]
[TD]STOP[/TD]
[TD]W[/TD]
[TD]SDO[/TD]
[/TR]
[TR]
[TD]TRAIN[/TD]
[TD]SDO[/TD]
[TD]SDO[/TD]
[TD]STOP[/TD]
[TD]W[/TD]
[TD]STOP[/TD]
[/TR]
[TR]
[TD]OTHER[/TD]
[TD]STOp[/TD]
[TD]STOP[/TD]
[TD]W[/TD]
[TD]SDO[/TD]
[TD]STOP[/TD]
[/TR]
</tbody>[/TABLE]

I would like to learn how to do two things with it. Learning will help me reproduce similar and better results for other projects too.

I would like to open the worksheet and it run a macro that says: TODAYS DATE (Example: Today is the 5th), Grab the 5th Date column, and pull all of the rows that have a task that has stop in it, paste it into another sheet, like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]TASK[/TD]
[TD]5th[/TD]
[/TR]
[TR]
[TD]TRAIN[/TD]
[TD]STOP[/TD]
[/TR]
[TR]
[TD]OTHER[/TD]
[TD]STOP[/TD]
[/TR]
</tbody>[/TABLE]

And also I would like to be able to have a macro that pulls the current month and resets the top Day and Date columns to what those would be.
So January 1 I could open it and run the macro and the 1st column would be TUES, 1st and it would update that entire row.

Further down the road, i know certain tasks are due certain days every month. So TRAIN would always be STOP on the 5th, 10th, 15th, etc.
How could I place the values once it updates the header dates?


Sorry for the loaded question.. I'm eager to learn and thanks for any tips or resources you can provide.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
From this image I assume task is in column A

And do you want the entire row copied to another sheet or just column A and todays column.

And please never say "another sheet"

We need sheet names.

What is the name of the sheet with your data
What is the name of the sheet where you want this data copied to?
Or do you want the script to create a new sheet. And if so what would the new sheet be named?

See we always need specific details like this.

And I assume the Days like Mon are in Row(1) is that correct?

And why no Friday or Saturday
 
Upvote 0
I also think row(1) columns should have dates in them like 1/7/2018
That way it's easier to fine proper column
If not you will have to reset this every 7 days because the script would not know what column to look for if you had Mon in several different columns in row(1)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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