+ Reply to Thread
Results 1 to 12 of 12

Insert Picture To Cell in Col A with pic name in Col B

Hybrid View

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Insert Picture To Cell in Col A with pic name in Col B

    How would i get this code working for excel 2010

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Insert Picture To Cell in Col A with pic name in Col B

    Quote Originally Posted by acraens View Post
    How would i get this code working for excel 2010
    try this,
    Sub Button1_Click()
        Dim fs, f, f1, fc, s
        Dim folderspec, r As Long
    
        folderspec = "C:\Users\Dave\Pictures\Family Pictures\Vince Morrison Child\"
    
        Set fs = CreateObject("Scripting.FileSystemObject")
        Set f = fs.GetFolder(folderspec)
        Set fc = f.Files
        r = 2
    
        For Each f1 In fc
    
            Cells(r, 2) = f1
            r = r + 1
        Next f1
    
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1