User Form Help...

Philip_Platt

New Member
Joined
Aug 7, 2007
Messages
7
I have the following worksheet that keeps record of daily coatings usage at a conduit plant.
Book1.xls
ABCD
4MonthlyTotal(Gallons)8/18/2
5ANSIGray0
6ASIBlue0
7BallardGray0
8Black0
9Black(WaterBased)0
10BrammerGray0
11ChromeAluminum0
12DesertTan0
13EpoxyPnenicon0
14EXXONGreen0
15ForestGreen0
16ForestGreen(WaterBased)0
17GrayPrimer0
18CoalTar0
19IndustrialThinner(Toluene)0
20Latte0
21MethylEthylKetone(MEK)0
22No-HAPSThinner0
23PalletTan0
24PermianBattleshipGray0
25PermianBattleshipGray(WaterBased)0
26RedOxidePrimer0
27RedOxidePrimer(WaterBased)0
28RustResistantAluminum0
29SafetyBlue0
30Sandstone0
31Sandstone(WaterBased)0
32ShaleBlue0
33SonatGray0
34SonatGray(WaterBased)0
35StructuralGray0
36SyntheticThinner0
37White0
38White(WaterBased)0
39WhitePolyurethane0
40WhitePrimer0
41Xylene0
42ZincClad0
43ZincPrimer0
Aug 2007




What I am wanting to do is create a userform that will allow a technician to enter the number of gallons of each coating that was used each day. I want to have a simple blank beside the name of each coating for the entering of the data and just have the person hit "enter" to submit the data to the worksheet.

The dates on the worksheet extend out to column AG (which hold 8/31).

At the end of each month, i want a new worksheet created in which it will start recording data for the new month. It should automatically name the sheet according the the month... ex: August 2007 --> Aug 07 etc...

I would also like for it to format in the same way as the previous month

Thanks,
Philip Platt
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Philip

The HTML did work, if it didn't for you check your profile to see if you have HTML enabled.

As to your actual question, what help do you need with the userform?

Do you want to suggestions on what controls to use?
 
Upvote 0
I have the userform made and am able to get the data into the daily columns, i'm just not too sure on how i can enable it to create a new worksheet at the end of the month to continue the entering of data...

Thanks, Philip
 
Upvote 0
Actually, if anyone could help me from the start that would be awesome. I think what i have done so far on the user form may need to be scrapped because of problems...

thanks,Philip
 
Upvote 0
Philip

What have you got so far?
 
Upvote 0
So far when the user clicks the button to add data on the user form, this is what i have so far...

Code:
Private Sub AddData_Click()

ActiveWorkbook.Sheets("Aug 07").Activate
Range("C5").Select

Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(0, 1).Select
End If

Loop Until IsEmpty(ActiveCell) = True
End Sub

There is a text box next to each label for the paint color that they will enter the number of gallons being used. Right now I am trying to figure out how to search along the dates to choose the right column to dump the usage numbers.

Also, once i have gotten that done, how can I make it automatically create the next months usage log?

Thanks so much
Philip
 
Upvote 0
Also i forgot to mention that the date is entered in three text boxes, one for the month number, one for the day of the month, and one for the year. I though this may help when searching for the date...

Thanks
 
Upvote 0
Ok guys this is what i have so far:

Code:
Private Sub AddData_Click()

ActiveWorkbook.Sheets("Aug 07").Activate
Range("A1") = txtDate.Value()

Range("C4").Select
Do
If ActiveCell.Value <> Range("A1") Then
   ActiveCell.Offset(0, 1).Select
End If
Loop Until ActiveCell.Value = Range("A1")

ActiveCell.Offset(1, 0).Select

ActiveCell.Value = txtANSIG.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtASIBlue.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtBallGray.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtBlack.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtBlackWB.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtBramGray.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtChAl.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtDesTan.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtEpoPhe.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtExxGre.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtForGre.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtForGreWB.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtGraPri.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtCoaTar.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtIndThi.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtLatte.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtMEK.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtNoHapThin.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtPalTan.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = TxtPBG.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtPBGWB.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtROPri.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtROPriWB.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtRRAL.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtSafBlu.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtSand.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtSandWB.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtShaBlu.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtSonGra.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtSonGraWB.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtStrGra.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtSynThi.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtWhite.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtWhiteWB.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtWhiPoly.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtWhiPri.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtXylene.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtZinCla.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtZinPri.Value()
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = txtNatBlu.Value()
ActiveCell.Offset(1, 0).Select

End Sub

This is allowing me to enter the coating data for august any day at a time. Now the only thing left that i need it to do is to automatically jump to and label a new worksheet for a new month. Can anyone help with that?

Thanks,
Philip
 
Upvote 0
Philip

Are all these txtANSIG, txtASIBlue etc individual textboxs?
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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