LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Hlp - Display only file name when Insert Object As Icon

Hi,

I'm wondering how I would insert *only* the file name (not the path) when
using the following:

ExecuteExcel4Macro "INSERT.OBJECT?(,""C:\"",False,True,)"

I tried adding:
IconLabel:=Mid(strFile, InStrRev(strFile, "\") + 1)

As helped in another macro, but it didn't work.
Thanks.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert image or icon to rollover and display larger version Rocky Excel Discussion (Misc queries) 2 October 30th 09 08:20 PM
Icon Type and Name when Insert File As Icon Joyce Excel Programming 2 October 2nd 09 05:25 PM
Display only file name in embedded icon Joyce Excel Programming 0 September 30th 09 03:46 PM
Icon for inserted file object doesn't collapse away when closeoutline group Paul Excel Discussion (Misc queries) 2 April 1st 08 10:46 PM
Toggling Display as Icon for OLE Object [email protected] Excel Programming 0 July 13th 05 09:13 PM


All times are GMT +1. The time now is 06:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"