+ Reply to Thread
Results 1 to 2 of 2

Insert image and image name into specific place on sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    8

    Insert image and image name into specific place on sheet

    Hi,

    I have about 400 images of QR codes with peoples emails in the QR codes and i need to import them all into an excel sheet with a certain spacing between them and with the file names (persons name) above each individual QR code. Is this possible?

    Thanks for your help.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Insert image and image name into specific place on sheet

    Sub InsertFromFolder() '  dialog
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    InitialFoldr$ = "E:\Documents\Images\" '<<< Startup folder
    With Application.FileDialog(msoFileDialogFolderPicker) 'User input for folder to look at
            .InitialFileName = Application.DefaultFilePath & "\"
            .Title = "Please select a folder to list Files from"
            .InitialFileName = InitialFoldr$
            .Show
            If .SelectedItems.Count = 0 Then Exit Sub
            mfolder = .SelectedItems(1) & "\"
    End With
    strExtension = Dir(mfolder & "*.jpg") ' change extension
    r = 1
    Do While strExtension <> ""
      Rows(r).RowHeight = 55 ' to be changed
      Cells(r, 2).Select
      ActiveSheet.Pictures.Insert (mfolder & "\" & strExtension)
      ActiveCell.Offset(, -1).Value = strExtension
      r = r + 1
      strExtension = Dir
    Loop
    End Sub
    Last edited by patel45; 02-05-2014 at 04:55 AM.
    If solved remember to mark Thread as solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to insert image on specific place
    By kooijman599 in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 05:56 PM
  2. [SOLVED] Insert jpg image from file path to image frame
    By SAsplin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-27-2012, 10:12 AM
  3. automatically insert each image to its own sheet
    By jwewing23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2005, 05:06 PM
  4. [SOLVED] How can i insert image in excel sheet (SYLK) format
    By hYoussef in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2005, 01:06 AM
  5. [SOLVED] How do I insert an image into a specific cell within a protected .
    By Scott Peebles in forum Excel General
    Replies: 1
    Last Post: 01-06-2005, 10:06 PM

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