Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Excel Experts:
I am working on a macro and find this The CommandButton1 is in the sheet1 and when click on it, the code failed and error 1004 apears I dont't understand why. This code is on the sheets1 Private Sub CommandButton1_Click() Sheets(2).Select RowEmpty = Range("A1").CurrentRegion.Rows.Count + 1 Cells(RowEmpty, 1).Select End Sub Thanks a lot for any advice. Regards, Fernando Ortiz |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I just tested with a regular button/shape and it worked just fine. I do NOT
like using the command buttons. Look at the forms tools for your button. -- Don Guillett SalesAid Software "Fernando Ortiz" wrote in message ... Hi Excel Experts: I am working on a macro and find this The CommandButton1 is in the sheet1 and when click on it, the code failed and error 1004 apears I dont't understand why. This code is on the sheets1 Private Sub CommandButton1_Click() Sheets(2).Select RowEmpty = Range("A1").CurrentRegion.Rows.Count + 1 Cells(RowEmpty, 1).Select End Sub Thanks a lot for any advice. Regards, Fernando Ortiz |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Fernando
If you use Excel 97? then Change the takefocusonclick property to false of the button This is a bug in Excel 97 -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "Fernando Ortiz" wrote in message ... Hi Excel Experts: I am working on a macro and find this The CommandButton1 is in the sheet1 and when click on it, the code failed and error 1004 apears I dont't understand why. This code is on the sheets1 Private Sub CommandButton1_Click() Sheets(2).Select RowEmpty = Range("A1").CurrentRegion.Rows.Count + 1 Cells(RowEmpty, 1).Select End Sub Thanks a lot for any advice. Regards, Fernando Ortiz |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Limiting selection in a cell AND linking that selection to a list | Excel Discussion (Misc queries) | |||
Copy Selection - Transpose Selection - Delete Selection | Excel Discussion (Misc queries) | |||
Shortcut failed | Excel Discussion (Misc queries) | |||
PasteSpecial failed | Excel Programming | |||
Failed Web Query ... sometimes | Excel Programming |