Word vba insert file record shows xlicons. Exe how to get the path to the file
Selection. InlineShapes. AddOLEObject ClassType:="Excel. Sheet. 8", FileName:=_
"C: \ Users \ ThinkPad E480 \ Desktop \ xx XLS", LinkToFile:=False, _
DisplayAsIcon:=True, IconFileName:=_
"C: \ Program Files \ WindowsApps \ Microsoft Office, Desktop. Excel_16051. 11328.20222.0 _x86__8wekyb3d8bbwe VFS \ \ Windows \ \ Installer \ {90160000-000 - f - 0000-0000-0000 000 ff1ce} \ xlicons exe" _
, IconIndex:=1, IconLabel:="xx. XLS"
CodePudding user response:
It's just take the path of the icon, you can also save icon file to lay out a direct reference to relative pathCodePudding user response:
The