Closed Thread
Results 1 to 3 of 3

Value in Row

  1. #1
    Forum Contributor
    Join Date
    10-05-2017
    Location
    Altamonte Springs, FL
    MS-Off Ver
    Office 365
    Posts
    146

    Value in Row

    I'm trying to test that HearingDate(declared earlier in the code not on this page) is not blank and PET_EvidenceDue (also declared earlier) is blank, then replace PET_EvidenceDue with a formula, if true. I can't get the syntax of the integer (PET_EvidenceDue(i).Formula) for the resulting value in the For-Next loop correct. Where do I need to put the (i)? All my declared items are .databodyrange, fyi. The presence or no presence of the (i) is either erasing the column completely, just simply not running the test, or is applying the formula to the entire databodyrange.

    Please Login or Register  to view this content.
    How can I get this test to run the check and only put the formula in the appropriate columns? What am I doing wrong?

    FYI- I can't use SpecialBlankCells or opposite for either column becaue neither are showing up as technically blank for some reason.
    Attached Files Attached Files
    Last edited by jmklei0; 09-26-2020 at 06:37 PM. Reason: adding workbook

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Value in Row

    You need to post ALL your code, ideally in the workbook (rather than just posting an .xlsx file).

    83 views and no replies is indicative of the fact that you are not providing all the relevant information, not unlike the other thread on this same topic
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    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,727

    Re: Value in Row

    Administrative Note:

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-pro...or-blanks.html
    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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