I know this is a common type of query, but I have not been able to find an answer yet to my specific instance after active searching. I am also a new VBA user, so please bear with me.
I want to import an entire sheet of data (AllDATA tab in HISTORY.XLSM) that contains live formulae (range A1:HW6000) from a closed workbook into an active workbook, but only paste as values into the active workbook. More simply, want to replicate one sheet from the closed workbook as values (not live formuale) into the active worksheet.
I am on Mac OS X.
This is the code that I have been working with (running the code from the active workbook).
Sub GetRange()
With Range("A1:HW6000")
.Formula = "='C:\[HISTORY.xlsm]ALLDATA'!A1"
.Value = .Value
End With
End Sub
This code seems to import formats but not actual pasted values into my active workbook.
Any ideas?