I am trying to create a message box that thats shows the contents of a row.
A1 = the customer number, refered to as Loc
B1 is a date
C1 is text
D1 is a date
E1 is text repeat on and on....
I want to display in a message box.
B1: C1
D1: E1
until there are is no date value entered.
Without a loop / null value test I have got it working with.
but obvously this only shows 4 comments - or if expanded gives a trail of
:
:
:
Thanks in advance.
A1 = the customer number, refered to as Loc
B1 is a date
C1 is text
D1 is a date
E1 is text repeat on and on....
I want to display in a message box.
B1: C1
D1: E1
until there are is no date value entered.
Without a loop / null value test I have got it working with.
Code:
comment1 = Loc.Offset(0, 1) & ": " & Loc.Offset(0, 2)
comment2 = Loc.Offset(0, 3) & ": " & Loc.Offset(0, 4)
comment3 = Loc.Offset(0, 5) & ": " & Loc.Offset(0, 6)
comment4 = Loc.Offset(0, 7) & ": " & Loc.Offset(0, 8)
MsgBox comment1 & vbCrLf & comment2 & vbCrLf & comment3 & vbCrLf & comment4
but obvously this only shows 4 comments - or if expanded gives a trail of
:
:
:
Thanks in advance.