Skip to Content

inconsistent behavior of save buttons with SAP NetWeaver

Hello Everyone,

I'm working on an addition for our workbooks. The idea is that I want the workbooks to be saved with the scrollbars all the left and up regardless of where users scroll to while they edit them. I decided to do this with the code below, however I'm noticing different behavior with the save button in the workbook and the save button in the VBA code editor. When I save through the save button in the workbook, I see the scrollbars flicker after which they remain in the same spot. When I save through the save button in the code editor the scrollbars are scrolled all the way left and up as expected. I'm using SAP BusinessObjects Analysis version: 2.4.2.67902.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)        
    ActiveWindow.ScrollRow = 1
    ActiveWindow.ScrollColumn = 1
End Sub

I also tried applying this code to a new, empty workbook that I saved to SAP NetWeaver and the issue persists (the save button in the workbook doesn't change the scroll position whereas the one in the code editor does.)

I also tried creating a new, empty workbook locally then I applied the code and the behavior of both save buttons is consistent in that the scroll positions are restored.

Any ideas of what might be causing this issue?

Thanks

Dimitar

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.