brantjones6
New Member
- Joined
- Apr 4, 2019
- Messages
- 3
I have created this macro and it works fine on my computer. However, I sent it to coworkers to use on their computers and it does not work.
Private Sub Workbook_Open()
'
' MoveDateBoxMain Macro
'
'
Sheets("Main").Activate
ActiveSheet.Shapes.Range(Array("DTPicker2")).Select
ActiveSheet.Shapes("DTPicker2").ScaleWidth 1.1, msoFalse, _
msoScaleFromTopLeft
ActiveSheet.Shapes("DTPicker2").ScaleWidth 0.9, msoFalse, _
msoScaleFromTopLeft
ActiveSheet.Shapes("DTPicker2").ScaleHeight 1.1, msoFalse, _
msoScaleFromTopLeft
ActiveSheet.Shapes("DTPicker2").ScaleHeight 0.9, msoFalse, _
msoScaleFromTopLeft
The line in the green text seems to be the issue from the debugger. Any help would be greatly appreciated!!
Private Sub Workbook_Open()
'
' MoveDateBoxMain Macro
'
'
Sheets("Main").Activate
ActiveSheet.Shapes.Range(Array("DTPicker2")).Select
ActiveSheet.Shapes("DTPicker2").ScaleWidth 1.1, msoFalse, _
msoScaleFromTopLeft
ActiveSheet.Shapes("DTPicker2").ScaleWidth 0.9, msoFalse, _
msoScaleFromTopLeft
ActiveSheet.Shapes("DTPicker2").ScaleHeight 1.1, msoFalse, _
msoScaleFromTopLeft
ActiveSheet.Shapes("DTPicker2").ScaleHeight 0.9, msoFalse, _
msoScaleFromTopLeft
The line in the green text seems to be the issue from the debugger. Any help would be greatly appreciated!!