Update bi-weekly timecard

BurtZ

New Member
Joined
Jan 7, 2017
Messages
4
Hello, I've been given the payroll task at my small company. Our time sheets are in excel, which I need to manually update each biweekly period. I am looking for help on writing a macro that will update the dates on my excel time sheet. Here is a sample, sorry it didn't copy over nicely. Thanks in advance!

Pay PeriodFrom:1/8/2017To:1/21/2017
SUN.Date:1/8 MON.Date:1/9 TUE.Date:1/10 WED.Date:1/11 THUR.Date:1/12 FRI.Date:1/13 SAT.Date:1/14
SUN.Date:1/15 MON.Date:1/16 TUE.Date:1/17 WED.Date:1/18 THUR.Date:1/19 FRI.Date:1/20 SAT.Date:1/21

<colgroup><col><col span="2"><col><col span="3"><col><col span="3"><col><col span="3"><col><col span="3"><col><col span="3"><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

j_unsuitable

Board Regular
Joined
Oct 28, 2015
Messages
235
Hey

a few questions:
do you want to change the cells in your previous sheet or create a new sheet with the new dates?
do you only have to do the changes once for some template sheet or will you have to loop through several sheets/workbooks and change them all?
can you upload a sample file to some filesharing site and link to it here? It would help a lot knowing the actual cells the dates are in, the formatting etc..

Julian
 

BurtZ

New Member
Joined
Jan 7, 2017
Messages
4
Hey Julian,

I have one workbook with ~50 sheets, one per employee. I want to change the dates on all sheets and then on the next period, change the dates again. So, it would have to loop through each sheet...I think?? I will try to save this and re-post later. Thanks for your response.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,424
Messages
5,837,157
Members
430,479
Latest member
mamush200

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
Top