Set excel zoom level @ 100% before saving excel & also scroll bar should be in center

Hi,

I am writing data to excel file and saving it. I want the zoom level to be set to 100% every time I save the file and also the scroll bar has to be in the center for every sheet in excel. How can I achieve this.

image

Has anyone done this or anyone knows how to do this?

1 Like

Hey @Sairam_RPA

Kindly check this once please,

nmnithinkrishna_ZoomAndAdjustScroolExcel.zip (7.4 KB)

Hope that helps.

Thanks
#nK

1 Like

Thankyou @Nithinkrishna the code is working but I see this pop up below everytime I run it.

image
can you tell me how to handle this as well.

1 Like

Hey @Sairam_RPA

Is this because of VBA code ?

As I was not getting it ?

Anyway, you can try this - Trust center settings

Thanks
#nK

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.