Sweedler
Board Regular
- Joined
- Nov 13, 2020
- Messages
- 132
- Office Version
- 365
- Platform
- Windows
Hello
Sub New_country_Click()
Dim i As String
Dim w As Long
Dim v As Long
Range("P5").Formula = "=XLOOKUP(1,I:I,B:B,"""",0)"
w = 50000
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
i = Range("P5")
Range("P5") = i
End Sub
I am currently using the following. Each time "CALCULATEFULLREBUILD" is the "xlookup" formula present a name in cell P5. I want this process to cycle 5-10 times, but I need there to be a pause so that the name in P5 can be registered. I basically want it to look like it is cycling through a selection of names before it settles with the final one. That is when the value is copied in so that it does not change anymore.
Please help
Sub New_country_Click()
Dim i As String
Dim w As Long
Dim v As Long
Range("P5").Formula = "=XLOOKUP(1,I:I,B:B,"""",0)"
w = 50000
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
For v = 1 To w
Next v
Application.CalculateFullRebuild
i = Range("P5")
Range("P5") = i
End Sub
I am currently using the following. Each time "CALCULATEFULLREBUILD" is the "xlookup" formula present a name in cell P5. I want this process to cycle 5-10 times, but I need there to be a pause so that the name in P5 can be registered. I basically want it to look like it is cycling through a selection of names before it settles with the final one. That is when the value is copied in so that it does not change anymore.
Please help