Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can i combine combo boxes
Hi, I have three combo boxes in VB user form for date (day,month,year), and i need to combine these in an excel cell, but i cannot. Can anyone give me a code? please... *** Sent via Developersdex http://www.developersdex.com *** |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can i combine combo boxes
Hi Bep,
Assume the three comboboxes are named cbxDay, cbxMonth and cbxYear, then, for example, the requied date might be inserted using a commandbutton, thus: '===================== Private Sub CommandButton1_Click() Sheets("Sheet2").Range("A1").Value = _ DateSerial(cbxYear, cbxMonth, cbxDay) End Sub '<<===================== --- Regards, Norman "beb" wrote in message ... Hi, I have three combo boxes in VB user form for date (day,month,year), and i need to combine these in an excel cell, but i cannot. Can anyone give me a code? please... *** Sent via Developersdex http://www.developersdex.com *** |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can i combine combo boxes
Hi Beb,
Or, more explicitly: '===================== Private Sub CommandButton1_Click() Sheets("Sheet2").Range("A1").Value = _ DateSerial(cbxYear.Value, cbxMonth.Value, cbxDay.Value) End Sub '<<===================== --- Regards, Norman "Norman Jones" wrote in message ... Hi Bep, Assume the three comboboxes are named cbxDay, cbxMonth and cbxYear, then, for example, the requied date might be inserted using a commandbutton, thus: '===================== Private Sub CommandButton1_Click() Sheets("Sheet2").Range("A1").Value = _ DateSerial(cbxYear, cbxMonth, cbxDay) End Sub '<<===================== --- Regards, Norman "beb" wrote in message ... Hi, I have three combo boxes in VB user form for date (day,month,year), and i need to combine these in an excel cell, but i cannot. Can anyone give me a code? please... *** Sent via Developersdex http://www.developersdex.com *** |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can i combine combo boxes
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Getting Combo boxes to change options based on other Combo boxes. | New Users to Excel | |||
Selecting subsets using combo boxes or list boxes | Excel Discussion (Misc queries) | |||
Questions on combo boxes and list boxes. | New Users to Excel | |||
Combo Boxes and Tick Boxes | Excel Programming | |||
Combo Boxes and Tick Boxes | Excel Programming |