+ Reply to Thread
Results 1 to 3 of 3

Insert pictures

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    326

    Red face Insert pictures

    I am using excel 2003 on windows 7
    When I go to insert a "picture from file", the thumbnails are so small
    I can hardly see what each pitcure is.
    Is there a way to make thumbnails bigger by defalt?
    If anyone has an answer or can suggest any other way to insert pictures
    from a list / file, that I can actually see, please let me know.
    I insert about 30 or so pictures in each report.

    Thanks / RS

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

    Re: Help with insterting pictures in excel

    Dave Peterson gave me this code years ago in groups forum, you can select a range then run the code, when you have selected your picture from the file, it will insert the picture into your selection

    Option Explicit
    Private Declare Function SetCurrentDirectoryA Lib _
                                                  "kernel32" (ByVal lpPathName As String) As Long
    Sub ChDirNet(szPath As String)
        Dim lReturn As Long
        lReturn = SetCurrentDirectoryA(szPath)
        If lReturn = 0 Then Err.Raise vbObjectError + 1, "Error setting path."
    End Sub
    Sub testme01()
    
        Dim myPictureName As Variant
        Dim myPict As Picture
        Dim myRng As Range
        Dim myCurFolder As String
        Dim myNewFolder As String
    
        myCurFolder = CurDir
        myNewFolder = "yourfoldernamehere"
    
        On Error Resume Next
        ChDirNet myNewFolder
        If Err.Number <> 0 Then
            'what should happen
            MsgBox "Please change to your own folder"
            Err.Clear
        End If
        On Error GoTo 0
    
        myPictureName = Application.GetOpenFilename(filefilter:="PictureFiles,*.jpg;*.bmp;*.tif;*.gif")
    
        ChDirNet myCurFolder
    
        If myPictureName = False Then
            Exit Sub    'user hit cancel
        End If
    
        Set myRng = Selection.Areas(1)
        Set myPict = myRng.Parent.Pictures.Insert(myPictureName)
        myPict.Top = myRng.Top
        myPict.Width = myRng.Width
        myPict.Height = myRng.Height
        myPict.Left = myRng.Left
        myPict.Placement = xlMoveAndSize
    
    End Sub

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,457

    Re: Help with insterting pictures in excel

    just change the views of the Insert Picture dialog to Preview. Then the selected file will appear in a preview pane on the right of the dialog.
    Cheers
    Andy
    www.andypope.info

+ 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