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>
 

Some videos you may like

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,482
Messages
5,596,402
Members
414,063
Latest member
N_Bates

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