Excel On MAC .xlsm File Corruption

Licoule

New Member
Joined
Mar 10, 2016
Messages
3
I'm sorry in advanced if this has been answered before. I couldn't find the answer in past threads.
I have an .xlsm file that calls the user name to help make a record of changes
Code:
Function GetUserNameMac() As String
    Dim sMyScript As String

    sMyScript = "set userName to short user name of (system info)" & vbNewLine & "return userName"

    GetUserNameMac = MacScript(sMyScript)
End Function
The file and code in questions works great on a single computer. However I'm trying to have to file based on a shared network drive. When I move the file on to the drive, it works fine. When someone makes a change then saves, it works fine. After that first change is made, the file becomes corrupt. I have found one or two possible fixes online, but Ive never gotten a wrong answer from this form, so I was hoping someone was familiar with this issue. The computers are running OS X Yosemite 10.10.5 and the Excel version is 2011 ver. 14.5.2
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

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