[TABLE="width: 1095"]
<colgroup><col></colgroup><tbody>[TR]
[TD] For c = 2 To LastMemberRow[/TD]
[/TR]
[TR]
[TD] If memberleft5 = Left(Worksheets("Current Members").Cells(c, 1), 5) Then[/TD]
[/TR]
[TR]
[TD] i = i + 1[/TD]
[/TR]
[TR]
[TD] Select Case i[/TD]
[/TR]
[TR]
[TD] Case 1[/TD]
[/TR]
[TR]
[TD] member1 = Worksheets("Current Members").Cells(c, 1)[/TD]
[/TR]
[TR]
[TD] Set t = ActiveSheet.Range(Cells(x + 10, y + 1), Cells(x + 11, y + 5))[/TD]
[/TR]
[TR]
[TD] Set btn = ActiveSheet.Buttons.Add(t.Left, t.Top, t.Width, t.Height)[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD] With btn[/TD]
[/TR]
[TR]
[TD] .OnAction = "A03_UpdateAMember" & i[/TD]
[/TR]
[TR]
[TD] .Caption = Worksheets("Current Members").Cells(c, 1).Value[/TD]
[/TR]
[TR]
[TD] .Name = "Btn" & 1[/TD]
[/TR]
[TR]
[TD] End With[/TD]
[/TR]
[TR]
[TD] Case 2[/TD]
[/TR]
[TR]
[TD] member2 = Worksheets("Current Members").Cells(c, 1)[/TD]
[/TR]
[TR]
[TD] Set t = ActiveSheet.Range(Cells(x + 13, y + 1), Cells(x + 14, y + 5))[/TD]
[/TR]
[TR]
[TD] Set btn = ActiveSheet.Buttons.Add(t.Left, t.Top, t.Width, t.Height)[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD] With btn[/TD]
[/TR]
[TR]
[TD] .OnAction = "A03_UpdateAMember" & i[/TD]
[/TR]
[TR]
[TD] .Caption = Worksheets("Current Members").Cells(c, 1).Value[/TD]
[/TR]
[TR]
[TD] .Name = "Btn" & 2[/TD]
[/TR]
[TR]
[TD] End With
etc ...
With the buttons on the worksheet, I will click on a button.
It will call the sub "A03_UpdateAMember" & i
I now need the value of .Caption as it has the lookup value I need to continue
[TABLE="width: 1095"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Public Sub A03_UpdateAMember1()[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]'[/TD]
[/TR]
[TR]
[TD] member = .Caption (put this here to show what data value I want)[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD] ' the below sub will use member as the lookup value
[/TD]
[/TR]
[TR]
[TD] Call A03c_PullCurrentMemberInfo[/TD]
[/TR]
[TR]
[TD] Call A03d_PullPaymentInfo[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]End Sub[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thank you for following up