Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i'm using office 2003 and trying to paste an image from a file. The
actual image name is constant, "theone.jpg" but the actual subfolder is different and is something like "c:\documents\data\232 - 123 Sesame St\pictures\." The name of the subfolder "232 - 123 Sesame St" is variable. I want to be able to insert the picture using a wild card such as "c:\documents\data\232 * \pictures\" but that returns in error. What is the correct way to insert a wild card in the file path? Here is the code I have so far that isn't working: Sub Macro1() Dim mypath As String Dim filename As String Dim fullpath As String filename = "theone.jpg" mypath = "c:\documents\data\232 * \pictures\" MsgBox (mypath) Selection.InlineShapes.AddPicture (mypath & filename) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wild Card Search | Excel Worksheet Functions | |||
VLOOKUP with Wild Card? | Excel Worksheet Functions | |||
wild card in sumproduct | Excel Worksheet Functions | |||
Wild Card!!!??? | Excel Programming | |||
Wild card * | Excel Worksheet Functions |