Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to advance current row by 1
activeCell.Offset(1,0).Select
-- Regards, Tom Ogilvy "Dan" wrote in message ... I would like to create a macro that can be attached to a button on Sheet2 that when clicked will cause the Active row in Sheet 1 to advance by 1. Thanks in advance - Dan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to advance current row by 1
Hi Tom
I think the OP wanted to change the active cell on a different sheet than the current active sheet - whatever reason he has for this :-) -- Regards Frank Kabel Frankfurt, Germany Tom Ogilvy wrote: activeCell.Offset(1,0).Select "Dan" wrote in message ... I would like to create a macro that can be attached to a button on Sheet2 that when clicked will cause the Active row in Sheet 1 to advance by 1. Thanks in advance - Dan |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to advance current row by 1
I believe you are correct Frank, thanks for the heads up
Private Sub CommandButton1_Click() Application.ScreenUpdating = False Worksheets("Sheet1").Activate ActiveCell.Offset(1, 0).Select Worksheets("Sheet2").Activate Application.ScreenUpdating = True End Sub -- Regards, Tom Ogilvy "Frank Kabel" wrote in message ... Hi Tom I think the OP wanted to change the active cell on a different sheet than the current active sheet - whatever reason he has for this :-) -- Regards Frank Kabel Frankfurt, Germany Tom Ogilvy wrote: activeCell.Offset(1,0).Select "Dan" wrote in message ... I would like to create a macro that can be attached to a button on Sheet2 that when clicked will cause the Active row in Sheet 1 to advance by 1. Thanks in advance - Dan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro for HEAT chart - THANKS IN ADVANCE! | Excel Worksheet Functions | |||
advance filter sustitution in a macro - shared workbook | Excel Worksheet Functions | |||
use current year in macro | Excel Discussion (Misc queries) | |||
macro for current time | Excel Discussion (Misc queries) | |||
Use current sheet name in Macro | Excel Programming |