new in vba

dilipgr

New Member
Joined
Jan 30, 2015
Messages
43
in <acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-bottom-style: dotted; border-bottom-color: rgb(0, 0, 0); cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">VBA</acronym> i'm taking report for performance so i'm creating userform the properties are combobox1, dtpicker1, textbox1 & commandbuttton1.


Station01/01/201502/01/201503/01/201504/01/201505/01/201506/01/2015
MONTUEWEDTHUFRISAT
AKM
APK
ARR
ART
ASD
ATR
BTU
CDM
CGL
CJB
CMM

<tbody>
</tbody>


station in A column is combobox1, dtpicker is date ie, 1/1/15.....5/1/15 if i select combobox1 CJB and dtpicker 3/1/15 then give the value 100 in textbox1 and click commanbutton1 the value of 100 is placed in D13.


regards
Dilipkumar.V
windows7 excel 2007
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Your dates don't correspond to the days.

I wouldn't use a datePicker because they are not always available. If you use ComboBoxes for both the data and the Station then you can simply use the ListIndex Property to write to the correct column.

See this example
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,896
Members
449,194
Latest member
JayEggleton

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