Results 1 to 3 of 3

Value in Row

Threaded View

jmklei0 Value in Row 09-26-2020, 02:47 PM
TMS Re: Value in Row 09-27-2020, 04:41 AM
AliGW Re: Value in Row 09-27-2020, 04:54 AM
  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.

            Dim i As Integer
            With PET_EvidenceDue
                For i = 1 To .DataBodyRange.Rows.Count
    If Len(HearingDate(i).Value) > 0 And PET_EvidenceDue(i) = "" Then
                        PET_EvidenceDue(i) = "=[@[Hearing Date]]-15"
                    End If
                Next i
            End With
    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

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