I'm using this code to insert various file types as an object in Excel. Is there a way to stop the file from trying to run any autorun macros?
[VBA]
ActiveSheet.OLEObjects.Add(Filename:=FName).Select
With Selection
.ShapeRange.Left = [D1].Left
.ShapeRange.Top = Cells(ActiveWindow.ScrollRow + 1, 4).Top
.ShapeRange.Width = 400
End With
[/VBA]