Results 1 to 8 of 8
  1. #1
    mannyy12 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2020
    Posts
    23

    import excel file

    Hello
    Can I import comments with images from the excel file into the acess database?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    What sort of images are you talking about? some text with imogies? or pictures with descriptive text? something else?. You might be able to do it with VBA but would be complicated. But not enough info to point you in the right direction

  3. #3
    mannyy12 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2020
    Posts
    23
    only photo posted to the comment as background

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    Yes you can, but you will need to use OLE automation and Excel's object model, here are a couple of links that shows you how to add the picture so it should give you most of the needed objects:

    https://stackoverflow.com/questions/...as-comment-vba
    https://www.thespreadsheetguru.com/t...o-cell-comment

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  5. #5
    mannyy12 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2020
    Posts
    23
    I don't understand, I have a vba code that uploads photos as a comment, but how do I transfer these comments to acess?
    ?

  6. #6
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    In your Access db you need to automate Excel (open an Excel instance, load the workbook, start looping through its shapes collection, get the picture, save it, etc.).
    Here is another link that might help you:

    https://www.mrexcel.com/board/threads/how-to-import-export-pictures-from-excel-to-access-database.371689/
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  7. #7
    mannyy12 is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2020
    Posts
    23
    ""get the picture, save it, etc.)"" how can i get the picture from comments?

  8. #8
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    Mannyy12, what have you tried? As Ajax pointed out it is not easy. How comfortable are you with VBA code? The last link should have given you enough to start (the code at the bottom of the webpage).
    Cheers,

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Import Excel file
    By coolkat99 in forum Import/Export Data
    Replies: 1
    Last Post: 08-21-2018, 03:39 PM
  2. Replies: 34
    Last Post: 08-09-2017, 09:57 AM
  3. Replies: 2
    Last Post: 02-28-2017, 01:34 AM
  4. Import access query data into excel file, using excel vba
    By exceljockey in forum Import/Export Data
    Replies: 3
    Last Post: 11-15-2013, 02:36 PM
  5. Import Excel file based on a date and time in file name
    By nhylan in forum Import/Export Data
    Replies: 4
    Last Post: 04-16-2013, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums