Can anyone help me ...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Can anyone help me with an Excel problem?

6 Posts
3 Users
0 Reactions
59 Views
Posts: 139
Free Member
Topic starter
 

Can anyone help me with the following problem?

I have an Excel spreadsheet to which a new worksheet is added each week. The new worksheet is named as the week number (i.e. "47" for this week). Does anyone know how I can make it open on the current worksheet regardless of which worksheet was open when it was last saved? I think it can be done with some vba code but I do not have the skills. Thanks.


 
Posted : 17/11/2015 12:09 pm
Posts: 17
Free Member
 

in VBA select the last worksheet then save as then it will open at that.

(probably a bad method)


 
Posted : 17/11/2015 12:12 pm
Posts: 139
Free Member
Topic starter
 

Thanks but I really need it to be seamless - I should have mentioned that there are a number of different users of the file.


 
Posted : 17/11/2015 12:19 pm
Posts: 0
Free Member
 

Stick that in "ThisWorkbook".

Basically counts your sheets. Then opens the sheet which equals the count. Stick a minus and a number behind Sheets.Count if you have extra sheets.

---------------------------------

Private Sub Workbook_Open()

i = Sheets.Count

Worksheets(i).Activate

End Sub


 
Posted : 17/11/2015 12:20 pm
Posts: 17
Free Member
 

Thanks but I really need it to be seamless

Then users who can't check what sheet they are on should not have access.


 
Posted : 17/11/2015 12:22 pm
Posts: 139
Free Member
Topic starter
 

PlopNofear thanks, that works fine!

MWS I agree with you but unfortunately they need to have access


 
Posted : 17/11/2015 12:40 pm
Posts: 17
Free Member
 

That is what controlled data entry is for, eg via a web page into a database
The consultant coming out in me, fixing the problem not the symptom


 
Posted : 17/11/2015 12:46 pm

6 DAYS LEFT
We are currently at 95% of our target!