VBA works for some but not others

cheesiepoof05

Board Regular
Joined
Dec 30, 2010
Messages
82
I created a workbook with quite a bit of VBA that multiple people use just fine. There are a few people that get the following error when they try to kick off a macro.
1611351395918.png

The debug highlights the below as the error.
ActiveCell.Formula2R1C1 = "=SORT(UNIQUE('Specialty Report'!R12C1:R30000C1))"

Any ideas on why many users can run it without issues, but some users errors out?

Everyone is selecting "Enable Content" when they get the Security Warning: Macros message.
 

Attachments

  • 1611351437457.png
    1611351437457.png
    32 KB · Views: 5

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Most likely a version problem. If they are not Running 365 or later version of Excel then the SORT and UNIQUE functions may not be available on their systems. Choices are to upgrade their systems or revise the code to accomodate their version of Excel.
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,849
Members
449,096
Latest member
Erald

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