Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi EveryBody I just discovered the Control Toolbox, (thanks Dominic), so i'm movin some of my previous Forms ComboBoxes to Control Comboboxes. I have thi macro that runs fine in the Forms Combobox but fails in the Contro Combobox embeded in the Sheet("Captura Datos"). The error i get say "Run time error 1004:" Method "Range" of Objetc "_Worksheet" failed Here are the declarations of the same macro in different places. Coul you show me what i doing wrong? Thanks a lot for your advice. Joe This one from the Controls Combobox Code ------------------- Private Sub ComboBox1_Change() Application.ScreenUpdating = False Sheets("Proceso").Select Range("ListaMejorOpcion").Sort Key1:=Range("P25"), Order1:=xlAscending, Header:=xlNo, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom Sheets("Captura Datos").Select Range("A38").Select Application.ScreenUpdating = True End Su ------------------- This one from the Forms Combobox Code ------------------- Sub SortMejorOpcn() ' ' SortMejorOpcn Macro ' Macro recorded 8/1/2004 by jose luis Application.ScreenUpdating = False Sheets("Proceso").Select Range("ListaMejorOpcion").Sort Key1:=Range("P25"), Order1:=xlAscending, Header:=xlNo, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom Sheets("Captura Datos").Select Range("A38").Select Application.ScreenUpdating = True End Su ------------------- -- jose lui ----------------------------------------------------------------------- jose luis's Profile: http://www.excelforum.com/member.php...fo&userid=1331 View this thread: http://www.excelforum.com/showthread.php?threadid=37415 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Place a button on a worksheet and assign a macro to it? | New Users to Excel | |||
Formula/Macro to place data on the next blank row | Excel Discussion (Misc queries) | |||
Place an IF Statement into a Macro 2007 and 2003 | Excel Discussion (Misc queries) | |||
Problems with same macro diferent place | Excel Programming | |||
Place code in a new workbook with a macro. | Excel Programming |