Run VBA when excel started

mduntley

Board Regular
Joined
May 23, 2015
Messages
139
Office Version
  1. 365
Platform
  1. Windows
I need to use an add-in that automatically selects the R1C1 reference style. The company that made the add-in says that we should uncheck the box to disable this behavior. I'm not sure why they did that in the add-in if they say to uncheck it. Does anyone know of a VBA that will uncheck R1C1 when I open Excel automatically?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Run this in the addin open event:

VBA Code:
Application.ReferenceStyle = xlA1
 
Upvote 0
If you are talking about the add in that I got from then I cant edit it as it is password protected. I do have a separate VBA project that is a macro on my computer
 
Upvote 0
If you are talking about the add in that I got from then I cant edit it as it is password protected. I do have a separate VBA project that is a macro on my computer
Then place that code in the Workbook_Open event of the workbook(s) that use the addin.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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