VBA Issue - difference between excel 2011 and 2016

JezJamesBrown

New Member
Joined
Oct 25, 2016
Messages
5
Hi everyone,

was wondering if someone could help me, i created a macro on excel 2016 on my Mac, which will import data from another work book that is not open. It works perfectly.

Now, the problem i have is when i sent it to my colleagues Mac who has excel 2011 installed everytime she runs the macro, its REALLY clunky and takes ages and also the data thats copied over has errors with it.

Is there something im missing? are there any changes thats needed to allow it to work on excel 2011?

Sub Import_Data()
Dim mydata As String
mydata = "='Macintosh HD:Users:name:Downloads:[ daily data file.xls]before'!$A$1:$AK$6"

With ThisWorkbook.Worksheets(2).Range("A1:AK6")
.Formula = mydata
.Value = .Value

End With
End Sub


Thanks in advance
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,216,094
Messages
6,128,785
Members
449,468
Latest member
AGreen17

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