+ Reply to Thread
Results 1 to 7 of 7

Insert picture from directory on the base of cell value

  1. #1
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Insert picture from directory on the base of cell value

    Assalam.O.Alaikum,
    Hello everyone,
    I hope all of you will be fine and have good health. I create an excel sheet for employees registration.
    I have made all things but a macro is required to insert pics of employees i.e photo and CNIC (front and back).
    Please see attached file and kindly help me to create "Employees Registration Form".
    There is two different folders of pics and CNIC.

    Cell value is c6 in in sheet1(Appointment Form).....

    I hope you understand my question.
    Attached Files Attached Files
    "M. Shahbaz Anwar Advocate"

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Insert picture from directory on the base of cell value

    Maybe something like this ?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Insert picture from directory on the base of cell value

    Thanks for helping
    but some images size is not fitted in photo area

    But thanks you helped me/reply my thread.

  4. #4
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Insert picture from directory on the base of cell value

    pics are not deleting when cell value c delete

    some pics is not fitted in size, because some are large in size..
    I want to get fixed size pics in this form.


    Thanks

  5. #5
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: Insert picture from directory on the base of cell value

    Quote Originally Posted by karmapala View Post
    Maybe something like this ?
    Please Login or Register  to view this content.

    Dear sir,
    Your code is working but need some modification given below.
    1. If i delete value in cell c6 delete these pics as i insert by value c6.(currently these pics are not deleting)
    2. I need fixed size of images in sheet, some images have large size and not fitting in photo area.
    3. If any image missed in folder "PICS" other images are not showing i.e of "CNIC".

    just this...

    Thanks for your Great work,,, Thanks with good wishes
    Last edited by M. Shahbaz; 07-19-2020 at 06:45 AM.

  6. #6
    Registered User
    Join Date
    02-20-2019
    Location
    Nederlands
    MS-Off Ver
    2016
    Posts
    6

    Re: Insert picture from directory on the base of cell value

    Hello M. Zhabhaz,

    Look at this topic, this helps me a lot by creating a visuel production planning.
    "find this topic under the name of Keebellah, auto-insert-picture-base-on-cell-value

    With many thanks to Keebellah

    Scenic3

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

    Re: Insert picture from directory on the base of cell value

    Add this to the 'Appointment Form' worksheet object

    Please Login or Register  to view this content.
    Add code module with the following routines
    Please Login or Register  to view this content.
    Your picture names are 1111 where as the test record is 11111, so you need to change the test record in order to get the correct images to load.
    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)

Similar Threads

  1. Auto insert picture base on cell value,
    By MyVB_polly in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 05-10-2019, 02:10 AM
  2. Show picture automatically base on value in cell
    By phan sang in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-25-2017, 02:49 AM
  3. [SOLVED] Insert Picture in cell, click commanbutton to rename picture, lock cell and remove button
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2014, 10:05 PM
  4. VBA for Picture insert at particular worksheet range. Picture name derived from cell.
    By Douglas2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2013, 01:16 AM
  5. [SOLVED] macro that will insert rows base on a cell value
    By dedeng in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-18-2012, 04:14 PM
  6. How to insert a blank cell base on a condidition?
    By aberrio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2012, 01:29 AM
  7. Displaying a picture base on cell content
    By Speclt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2010, 10:22 AM

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