Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
To open workbook to same worksheet I using macro
Private Sub Workbook_Open() Sheets (trips).Select End Sub Is that possible add to this macro, open to the next empty row or next empty cell in Column A? Thanks in advance. Sincerely, Igor. (inta251) -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200702/1 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Amended code below assuming no blanks in column A
Private Sub Workbook_Open() Sheets (trips).Select ActiveSheet.Cells(Rows.Count, 1).End(xlUp) _ .Offset(1, 0).Select End Sub Assuming first blank cell down. Private Sub Workbook_Open() Sheets("trips").Select Range("A1").End(xlDown).Offset(1, 0).Select End Sub Is that possible add to this macro, open to the next empty row or next empty cell in Column A? Thanks in advance. Sincerely, Igor. (inta251) Gord Dibben MS Excel MVP |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Yes but we really have to know the data layout. Suppose that before the next
empty row there is data in all the cells of column A, then the code would be [A1].End(XLDown).Offset(1,0).Select -- Cheers, Shane Devenshire "inta251 via OfficeKB.com" wrote: To open workbook to same worksheet I using macro Private Sub Workbook_Open() Sheets (trips).Select End Sub Is that possible add to this macro, open to the next empty row or next empty cell in Column A? Thanks in advance. Sincerely, Igor. (inta251) -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200702/1 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for respond.
Both formulas working for me perfectooo. THANKS again. Good weekend. Sincrely, Igor (inta251) Private Sub Workbook_Open() Sheets ("trips").Select ActiveSheet.Cells(Rows.Count, 1).End(xlUp) _ .Offset(1, 0).Select End Sub Private Sub Workbook_Open() Sheets("trips").Select Range("A1").End(xlDown).Offset(1, 0).Select End Sub -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200702/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to open a workbook on a specific worksheet. | Excel Worksheet Functions | |||
How to avoid opening an empty workbook every time I open a file? | Setting up and Configuration of Excel | |||
Copying A Worksheet From Each Open Workbook to an new Workbook | Excel Worksheet Functions | |||
open workbook on same worksheet | Excel Discussion (Misc queries) | |||
Is there away to open a worksheet outside of the workbook? | Excel Discussion (Misc queries) |