+ Reply to Thread
Results 1 to 4 of 4

Insert all Images in a Folder and fit them to each page

  1. #1
    Registered User
    Join Date
    07-03-2022
    Location
    VietNam
    MS-Off Ver
    2007
    Posts
    2

    Insert all Images in a Folder and fit them to each page

    Hi, I'm trying to insert all the images in folder E:\Image to sheet "intrang", the first image will be placed at A1, then the next image will be placed in the next page margin, i have this code but it's have error Object required at this line If topPosition + .Height > Sheets("intrang").PageSetup.PrintArea.Height Then
    I've check page setup, nothing seem odd
    Please, help me fix this

    Please Login or Register  to view this content.
    Last edited by AliGW; 04-29-2023 at 11:17 AM. Reason: Code tags added & irrelevant part of thread title removed.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,931

    Re: Insert all Images in a Folder and fit them to each page

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Insert all Images in a Folder and fit them to each page

    Is this a start?
    Change references as required.
    Please Login or Register  to view this content.
    Last edited by jolivanes; 04-29-2023 at 03:50 PM.
    Experience trumps academics every day of the week and twice on Sunday.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Insert all Images in a Folder and fit them to each page

    If you post in multiple forums, it is only polite to let us know so we don't have to waste time if someone in the other forum(s) has supplied you with an answer.

+ 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. Write Macro to auto insert all images in a folder
    By suet in forum Word Formatting & General
    Replies: 2
    Last Post: 05-18-2022, 10:18 AM
  2. Insert Images into Cells from Folder
    By briguy123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2021, 11:53 AM
  3. Import All Images in a Folder VBA
    By NewYears1978 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-26-2020, 11:09 AM
  4. Insert all images if folder name matches same cell value (col a below loop)
    By jhoelski in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2019, 02:23 AM
  5. VBA: How to crop all images in folder
    By first_jaguar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2017, 11:30 PM
  6. Replies: 1
    Last Post: 03-12-2013, 04:45 AM
  7. copy all images into folder
    By gsrikanth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2012, 07:38 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