Home > Software engineering >  Word vba insert file record shows xlicons. Exe how to get the path to the file?
Word vba insert file record shows xlicons. Exe how to get the path to the file?

Time:11-19


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 path

CodePudding user response:

The
refer to the original poster Sring65 response:

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"


"Excel_16051. 11328.20222.0 _x86" the different versions of the excle path is not the same? Can you solve
  •  Tags:  
  • VBA
  • Related