+ Reply to Thread
Results 1 to 6 of 6

Ignoring Blank Cells

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    41

    Ignoring Blank Cells

    Hi all,

    I am hoping someone will be able to help me with this.

    I currently have some VBA code which is importing images from a certain cell and displaying them in another tab. This is working well and the images are displaying in the correct cells. However, if the reference cell contains no data (blank, but with a formula in column Y), then the formula offsets and the images are placed further down the list which I am trying to avoid. This is the code;

    Please Login or Register  to view this content.
    The images are displaying in the correct column (AA & AB), but leave some rows blank if the reference cells contain no data. How can I ignore these blank rows?

    Any help would be greatly appreciated.

    Many thanks,

    TM

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Ignoring Blank Cells

    hi TM, check if this helps:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    41

    Re: Ignoring Blank Cells

    Thanks watersev, that has resolved part of the issue.

    The problem I have now is that the picture are still offset by 2 rows & 2 columns, so the images are inserting 2 rows lower than I require (the column position is correct).

    Is there any way round this?

    Many thanks,

    TM.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Ignoring Blank Cells

    if I do not miss anything, try this

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-07-2014
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    41

    Re: Ignoring Blank Cells

    I don't think I made myself very clear, sorry.

    It is only the top image that is offset by 2 rows. Every image that the code retrieves after this is fine (r = r + 6). Just the first image is an issue.

    TM

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Ignoring Blank Cells

    Please Login or Register  to view this content.

+ 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. Ignoring blank cells
    By Yonex1975 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-09-2013, 06:44 PM
  2. Ignoring blank cells
    By reaney10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2012, 02:49 PM
  3. Excel 2007 : Ignoring Blank Cells
    By stellaselectxi in forum Excel General
    Replies: 4
    Last Post: 10-24-2010, 04:22 PM
  4. Ignoring blank cells
    By bmunoz64 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-30-2009, 12:32 PM

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