Forum Discussion
Make Excel Office 365 open at cell A1? Or create a hyperlink to it?
- Nov 08, 2019
Found a possible answer to your question, here:
Rather than forcing sheets to open on A1 in the first sheet, it forces all workbooks to select A1 on the first sheet, save it and then close it.
This site suggests a bit of VBA code to be inserted in "ThisWorkbook module". I added the part where it selects A1 on the first sheet myself :))
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Worksheets(1).Activate
Range("A1").Select
Me.Save
End Sub
Tried it myself and it works (see attached). Don't know if it works for shared workbooks (couldn't test it) and haven't figured out how to do this automatically for each new workbook. Unless someone else does, you can insert the code in every new workbook you intend to share (if that works, of course) and save it as an "xlsm" file type.
Riny_van_EekelenThank you. An ingenious solution! Unfortunately it's really the shared online documents I'm trying to get working sensibly and it looks like VBA code won't run https://support.office.com/en-us/article/Work-with-VBA-macros-in-Excel-for-the-web-98784ad0-898c-43aa-a1da-4f0fb5014343
It also looks like https://answers.microsoft.com/en-us/msoffice/forum/all/external-url-link-to-a-specific-cell-in-an-excel/3c5d27e8-ffb9-4a7b-8cf7-5b64ce5b0814 isn't possible?
The best I've managed to find, is to just freeze the top left cells I need displayed at launch. A fairly ugly solution that still doesn't guarantee the workbook doesn't just randomly load to a different tab.
- SergeiBaklanNov 08, 2019Diamond Contributor
- brccollNov 12, 2019Copper Contributor
SergeiBaklanThank you! That solved our problem! 🙂
- SergeiBaklanNov 12, 2019Diamond Contributor
brccoll , you are welcome