Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm creating a macro that's a basic zero out of all unprotected cells.
However, I want the macro to return the active cell/window view back to the top of the sheet once the macro is finished running. What is the command I put at the end of the macro? Currently, I have this: Private Sub CommandButton3_Click() Application.ScreenUpdating = False ActiveCell.FormulaR1C1 = "0" Range("K109").Select ActiveCell.FormulaR1C1 = "0" Range("K126").Select End Sub Thanks! Michele S. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not just Range("cellattop").Select? ("cellattop" is of course whichever
cell you mean when you say "top of the sheet" = K1, A1, or other) Ed "Michele.Nextel" wrote in message ... I'm creating a macro that's a basic zero out of all unprotected cells. However, I want the macro to return the active cell/window view back to the top of the sheet once the macro is finished running. What is the command I put at the end of the macro? Currently, I have this: Private Sub CommandButton3_Click() Application.ScreenUpdating = False ActiveCell.FormulaR1C1 = "0" Range("K109").Select ActiveCell.FormulaR1C1 = "0" Range("K126").Select End Sub Thanks! Michele S. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell formula that will give back the address of the cursor? | Excel Worksheet Functions | |||
How do I make it so that the active cell follows the cursor keys? | Excel Discussion (Misc queries) | |||
How do I move cursor in an active cell without using delete/backsp | Excel Discussion (Misc queries) | |||
Cursor keys move active cell or scroll screen, how do I select whi | Excel Discussion (Misc queries) | |||
Writing a macro to bring back distinct value | Excel Programming |