Blobajob88
Board Regular
- Joined
- Mar 27, 2020
- Messages
- 56
- Office Version
- 365
- 2019
- Platform
- Windows
I'm trying to develop a progress bar, which consists of a static rectangle with an internal rectangle that moves with time. I've set the width, height and left, top positions. It works fine for me on my big monitor and my laptop but when I get someone else to open it on their screen it shifts position. I've included what it looks like for me compared with someone else below, as well as a snippet of the code. Does anyone know what the issue is?
What happens on someone else's screen
What happens on someone else's screen
VBA Code:
Sub CycleProgression2()
If ThisWorkbook.Sheets("Tunable Analyser").Range("AX5").Value = "Go" Then
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Width = 20
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Height = 9
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Top = 135.5
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Left = 748.4933
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Rectangle 101").Top = 133.48
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Rectangle 101").Left = 747.6553
Application.OnTime Now + 0.00003, "CycleProgression3"
Else
Call hideMessages.HideNonStopMeasurementMessages
End If
End Sub
Sub CycleProgression3()
If ThisWorkbook.Sheets("Tunable Analyser").Range("AX5").Value = "Go" Then
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Width = 40
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Height = 9
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Top = 135.5
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Cycle Progression").Left = 748.4933
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Rectangle 101").Top = 133.48
ThisWorkbook.Sheets("Tunable Analyser").Shapes("Rectangle 101").Left = 747.6553
Application.OnTime Now + 0.00003, "CycleProgression4"
Else
Call hideMessages.HideNonStopMeasurementMessages
End If
End Sub