+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,228

    Re: production report update from packing report.

    Maybe like this:
    Code:
            If Not LotFind Is Nothing Then
                LotVal = LotFind.Offset(0, -1).Value - LotNum.Offset(0, 1).Value
                    If LotVal <= 0 Then
                        LotFind.EntireRow.Delete xlShiftUp
                    Else
                        If LotFind.Offset(0, -1).HasFormula Then
                            LotFind.Offset(0, -1).Value = LotFind.Offset(0, -1).Formula & "-" & LotNum.Offset(0, 1).Value
                        Else
                            LotFind.Offset(0, -1).Value = "=" & LotFind.Offset(0, -1).Value & "-" & LotNum.Offset(0, 1).Value
                        End If
                    End If
                LotNum.EntireRow.ClearContents
                Set LotFind = Nothing
            End If
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  2. #17
    Valued Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    286

    Re: production report update from packing report.

    wow.what i can say JB.u are real guru,how many rep+ i can give.that all i will give to u.this is a brilliant help.thanks a lot again again again & again.....

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.2.0