tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
so i have this code
all works fine but id like to display the data in cell Q3 in Textbox1
currently this hapens at the start using code
but the figues in Q3 increase each time the macro loops but the text box does not update,
any ideas how i can get it to update each time the macro loops?
thanks
Tony
so i have this code
VBA Code:
Sub Send_Everyone()
Dim myRange As Range
Dim cell As Range
UserForm2.Show (vbModeless)
UserForm2.Repaint
Application.EnableEvents = False
Application.ScreenUpdating = False
Set myRange = EmailA.Range("F8:F" & Lr)
For Each cell In myRange
If cell.Offset(0, -1).Value = "" Then
Raw.[Q1].Value = cell.Value
Raw.[Q2].Value = cell.Offset(0, 1).Value
End If
Next cell
Application.EnableEvents = True
Application.ScreenUpdating = True
Unload UserForm2
End Sub
all works fine but id like to display the data in cell Q3 in Textbox1
currently this hapens at the start using code
VBA Code:
Private Sub UserForm_Initialize()
TextBox1.Value = EmailA.Range("Q3").Value
End Sub
any ideas how i can get it to update each time the macro loops?
thanks
Tony