Hello everyone. I'm coming here for help to find a solution for a task. I am a hobbyist in excel and usually try to hunt down the answers I need on the net. I have failed. Either by not knowing how to pose the question, or what I want to do is just stupid.
Here is the task. I have made a spread sheet to calculate estimated gross pay on a 2 week pay cycle. Built a 2 week sheet where people could enter their hours worked, rate of pay. Excel pumps out answers. I Put in a clear contents button, to clear the sheet. That's all good, however I would like to make two buttons to set defaults for the two different work shifts at the plant. e.g. shift "A" would push "A Shift" button and the standard hours for that shift would dump in the hours of their standard work cycle. They would then adjust their actual hours worked in the cells to get their estimate. B Shift has a mirror image of hours worked then A Shift.
How do I write a set of instructions in a macro to assign to a button that would then tell the cell "D5" it has the value of "12"
I can clear it by - Range("D5").ClearContents , I can't make it have a value of 12.
If there would be anyone here that can help me with an example of how to write the code for one cell, I could take it from there.
Thanks
Leghorn.
Here is the task. I have made a spread sheet to calculate estimated gross pay on a 2 week pay cycle. Built a 2 week sheet where people could enter their hours worked, rate of pay. Excel pumps out answers. I Put in a clear contents button, to clear the sheet. That's all good, however I would like to make two buttons to set defaults for the two different work shifts at the plant. e.g. shift "A" would push "A Shift" button and the standard hours for that shift would dump in the hours of their standard work cycle. They would then adjust their actual hours worked in the cells to get their estimate. B Shift has a mirror image of hours worked then A Shift.
How do I write a set of instructions in a macro to assign to a button that would then tell the cell "D5" it has the value of "12"
I can clear it by - Range("D5").ClearContents , I can't make it have a value of 12.
If there would be anyone here that can help me with an example of how to write the code for one cell, I could take it from there.
Thanks
Leghorn.