tulipsfree
Technical User
Need the msgbox to alert when the 'last non-blank' in a column is '1' (or 'true') -- immediately after (or as part of) a refresh event of a querytable object importing a .txt file.
This is some code I came up with off the top of my head that, so far, doesn't work:
Sub SignalAlert()
Dim j, k, n, o As Boolean
Set j = Range("J4"

Set k = Range("K4"

Set n = Range("N4"

Set o = Range("O4"

If j = 1 Then
Ans = MsgBox("text"

ElseIf k = 1 Then
Ans = MsgBox("text"

ElseIf n = 1 Then
Ans = MsgBox("text"

ElseIf o = 1 Then
Ans = MsgBox("text"

End If
End Sub
Thanks for your help,
Tulip