VBA formatting macro that worked in Excel 2010 is not working correctly in Excel 2013

jayar2112

New Member
Joined
Jun 10, 2015
Messages
1
We have a batch job that programmatically generates an SSRS report in Excel format and then applies a VBA Excel macro which is contained in another Excel worksheet. This procedure had been working fine when used with Excel 2010. When we upgraded our servers where the batch job is run to Excel 2013, the behavior of the formatting changed.

Specifically, one of the issues is with the freezing of panes. In the VBA macro a cell is selected on a sheet and the “ActiveWindow.FreezePanes = True” is called to freeze the panes. This was working when navigating the finished worksheet when we had Excel 2010 installed but is not after upgrading to Excel 2013. Curiously, when the finished worksheet is opened in Excel and you select “View -> Freeze Panes” the “Unfreeze Panes” option is available - not the “Freeze Panes” option. It’s as if Excel knows the panes have been frozen in this worksheet but is not honoring it when navigating the worksheet.

Another twist to this is that the formatting does work correctly if the batch job is run under certain Windows user accounts.

Perplexed here. Any ideas??

Thanks!

John R.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,203,488
Messages
6,055,716
Members
444,811
Latest member
NotJack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top