Sometimes files are broken and beyond repair...can we prevent this?

davidam

Active Member
Joined
May 28, 2010
Messages
497
Office Version
  1. 2021
Platform
  1. Windows
I spent some time stressing this morning...feeling pretty confused about what I thought I knew about VBA. A file that I had moved here and there, changed, copied and used quite a bit, suddenly would not allow another file to copy data from it...it them threw a 'locked' error when VBA tried to just activate a sheet on the file. Fortunately, right at that moment, my daughter needed a ride so I took a break. As I was driving home it occurred to me the the file (and not me) was broken and it needed to be rebuilt. I did so and the problem was gone. It was a small file so it was easy to do; but if it had been a large one it would have been a different story. This begs the question: what can we do to prevent files from getting broke? A few things that I think are: saving files often and not running macros until the file has been saved. Any comments?
 
Hi,

I've never gotten a message that a sheet is "locked". So I'm just not sure what that really refers to. Have you "locked" any sheets, and if so, how did you do so? Do you mean that you are using cell protection? Are all the cells on the sheet locked?

(Not that it really matters if you've fixed it already by rebuilding the workbook).

ξ
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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