Code not running on new computer

John Wol

New Member
Joined
Jan 6, 2019
Messages
7
I have a small .xlsm file which contains two simple macros and a VB module designed to return a 10-character hash from a character string using "=BASE64SHA1(A1)". I'm not skilled in VB so I simply found the code from a web site. The only mod I made was to set the length of the hash to 10 characters.

I've been using this file regularly for about a year on each of three computers without problems all using Office 365.

I have recently bought a new computer, installed Office 365 and tried to use the file. "=BASE64SHA1(A1)" only returns "#VALUE". The other two macros in the file work correctly. The same file continues to work correctly on the other computers.

I have compared the Excel options on the new computer with those on one of my other machines they all seem identical but I might have missed something.

I would be grateful for any help you might be able to offer.
 
Thank you for your reply. I am away from home (and the offending computer) for a couple of days. I'll look at this on my return.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Problem solved!!!

While trying to do something else, I received an error message saying that I needed to install .NET. I've no idea what that is but I installed it anyway and now the code runs.

Thank you for your help with this.
 
Upvote 0
.Net is used in a lot of things from microsoft
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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