Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I receive an error code of '1004' when I use the following code:
Public Sub cmbSelect_Click() If cmbSelect.Value = "HC" Then Worksheets("HCDATA").Range(Cells(2, 1), Cells(84, 1)).Copy Destination:=Worksheets("REGRESSION").Range(Cells( 9, 2), Cells(91, 2)) ElseIf cmbSelect.Value = "LC" Then Worksheets("LCDATA").Range(Cells(2, 1), Cells(84, 1)).Copy Destination:=Worksheets("REGRESSION").Range(Cells( 9, 2), Cells(91, 2)) End If End Sub I believe its caused by the fact that I cannot get focus on the sheet I want to copy from when using the combobox. Is there any way around this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy with ComboBox | Excel Programming | |||
Error 13 with combobox | Excel Programming | |||
Combobox creates error | Excel Worksheet Functions | |||
error (ComboBox-?) | Excel Programming | |||
Excel - Copy range of cells based on Combobox Selection | Excel Programming |