Worksheet unlocks when running Macro on a sheet that contains both VBA and a Macro.

lonybrown

Board Regular
Joined
Mar 8, 2021
Messages
68
Office Version
  1. 365
Platform
  1. Windows
Hope this makes sense, I have a worksheet that contains both a VBA and a Macro. The VBA, by entering a value in cell A3 and press enter the VBA works as it should and locks the sheet after running,
For the Macro, I enter a value in to Cell A2, once i press enter or tab off that cell (prior to running the macro) the sheet unlocks. I have tried utilizing a different cell for the VBA with no difference.
If I remove the VBA the Macro work as it should, and not unlocking till running the Macro and locking once completed.
Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

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