I suspect this problem is due to the VBA code running prior to the workbook recalculation.
I managed to get some success by adding a DoEvents statement in the SpinButton change event. This makes the code wait for other events. I also repained the form to ensure changes show up though this doesn't appear to be essential in this case.
Private Sub SpinButton1_Change()
TextBox1.Text = SpinButton1.Value
DoEvents
TextBox2.Text = Worksheets("Sheet1").Range("B1").Value
UserForm1.Repaint
End Sub
Private Sub UserForm_Activate()
TextBox2.Value = Range("b1").Value
Me.Repaint
End Sub
Hope this helps.
Bookmarks