![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
How can i cut and paste data from a combobox in visual basics into and cell in excel?
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Userform Modal set to False Userform dragbehaviour = 1 frmdragbehaviourenabled Now just select the data and Drag and drop into cell. To do a cut & paste I beleive you will need a textbox and some API calls Ivan |
|
|
|
|
|
|
#3 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
If you don't have Excel 2000 or even if you do, how about:
Private Sub ComboBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean) Cancel = True Sheet1.Range("A1") = ComboBox1.Value ComboBox1.Value = vbNullString End Sub |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|