Hi experts,
Following code is working good;
Following code is not working;![]()
Worksheets.Add Before:=Sheets("Apple")
How can I select previous sheet of Sheets("Apple") ?![]()
Worksheets.Select Before:=Sheets("Apple")
Thanks in advance
Hi experts,
Following code is working good;
Following code is not working;![]()
Worksheets.Add Before:=Sheets("Apple")
How can I select previous sheet of Sheets("Apple") ?![]()
Worksheets.Select Before:=Sheets("Apple")
Thanks in advance
![]()
Sub DontForgetThese() If Your thread includes any code Then Please use code tags... If Your thread has been solved Then Please mark as solved... If Anybody has helped to you Then Please add reputation... End Sub
Perhaps something like this:
![]()
on error resume next sheets(sheets("Apple").index-1).select on error goto 0
I have the error in case "Apple" is the first sheet.
Thanks
Thank you fredlo2010. Solved.
Maybe:
1
2![]()
Sub HerryMarkowitzzzaa() Sheets("Apple").Activate Sheets.Add End Sub
![]()
Sub HerryMarkowitzzza() Sheets("Apple").Activate ActiveSheet.Previous.Select End Sub
This is also good.
Thanks JOHN H. DAVIS.
![]()
Sub HerryMarkowitzzza() Sheets("Apple").Previous.Select End Sub
You're both welcome. However, I learned something new with fredlo2010's approach.
Thanks again.
Last edited by HerryMarkowitz; 01-11-2014 at 07:04 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks