Problem with read only error message and XLSTART folder

andrewsn

New Member
Joined
Aug 24, 2010
Messages
11
I have a file called Personal.XLSB that stores all of the macros I have written. This file is stored in Program Files/Microsoft Office/Office12/XLSTART and it loads every time Excel starts.

So I've got some macros that are scheduled to run automatically. When they run, they'll open a new instance of Excel. However, because Excel is already open, I get an error because it tried to load my Personal.XLSB file and tells me "The file is already open, would you like to open as read-only?"

My macros always get stuck because that error message gets in the way. Is there a way to get this error message out of the way or work around it?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Never mind guys. I ended up running the line below to solve my problem.

Workbooks("Personal.xlsb").ChangeFileAccess Mode:=xlReadOnly

To switch the file back to normal I then used:

Workbooks("Personal.xlsb").ChangeFileAccess Mode:=xlReadWrite
 
Upvote 0
Actually never mind the never mind.

Does anyone know how I can change the files that Excel loads upon start up?
 
Upvote 0
Actually never mind the never mind.

Does anyone know how I can change the files that Excel loads upon start up?

Change the files that are in your XLStart folder.
SO(metimes the folder gets corrupted and you need to close Excel, move the files in it, delete the folder, restart Excel (this creats the folder again), then move your files back into it.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,681
Members
452,937
Latest member
Bhg1984

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