Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I try to make a macro that use a combo box (ListFillRange: "B4:B120", Linked Cell: D2). And a Command Button. When I select a cell from the ListFillRange with the Combo Box, example "B6", and write a number in cell "D2". I would like the value to be transfered to the cell "D6" (Offset method?) when I push the command Button. Can it be done? Thanks *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hei Aksel
do not use lincedcell in your combobox (= empty) and try this. I use range(e2) to put the selections address Private Sub ComboBox1_Change() Dim b As String With ComboBox1 b = Range(.ListFillRange)(.ListIndex + 1).Address(False, False) ActiveSheet.Range("E2") = b End With ' End Sub Private Sub CommandButton1_Click() Dim b As String b = ActiveSheet.Range("e2").Value Range(b).Offset(0, 1) = ActiveSheet.Range("D2").Value End Sub Regards Yngve Ha en god dag. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks for your solution yngve, the workbook is finish and working. Og du har helt rett når det gjelder å takke for hjelpen. normal folkeskikk, beklager! Mvh. Aksel *** Sent via Developersdex http://www.developersdex.com *** |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
An alternate interpretation:
Private Sub Commandbutton1_Click() Range("D6").Value = Range("D2").Value End Sub -- Regards, Tom Ogilvy "Aksel Børve" wrote in message ... I try to make a macro that use a combo box (ListFillRange: "B4:B120", Linked Cell: D2). And a Command Button. When I select a cell from the ListFillRange with the Combo Box, example "B6", and write a number in cell "D2". I would like the value to be transfered to the cell "D6" (Offset method?) when I push the command Button. Can it be done? Thanks *** Sent via Developersdex http://www.developersdex.com *** |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks! for your help Ogilvy, your reply always work. Aksel *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
linking a form combo box... results from the combo box to another | Excel Discussion (Misc queries) | |||
combo reference on another combo box for picking address etc. | Excel Worksheet Functions | |||
"Combo Box - getting control combo box to stick in place in worksh | Excel Discussion (Misc queries) | |||
"Combo Box - getting control combo box to stick in place in worksh | Excel Discussion (Misc queries) | |||
Combo Box - Hide Combo Box w/Check Box | Excel Programming |