Hi
I have a picture or, more accurately, a SHAPE that VBA copies off one sheet and pastes in another. It works just fine except I want the shape pasted in the center of the active screen so the user is greeted with this picture upon activation of the macro. Since the cursor is rarely if ever even close to the center of the screen, I'm not sure how to instruct VBA where exactly to paste the pic.
Here's my code. Any suggestions how to force VBA to paste this picture in the center of the active screen?
--Thankx
maruapo
w = ActiveWorkbook.Name
s = ActiveSheet.Name
Workbooks("Macros.xls").Activate
Sheets("Waiting Room").Visible = True
Sheets("Waiting Room").Activate
ActiveSheet.Shapes("OneMoment").Copy
Sheets("Waiting Room").Visible = False
Workbooks(w).Activate
Sheets(s).Activate
Application.ScreenUpdating = True
ActiveSheet.PasteSpecial Format:="MS Office Drawing Object", Link:=False, DisplayAsIcon:=False
Application.ScreenUpdating = False
ActiveSheet.Shapes("OneMoment").Delete
I have a picture or, more accurately, a SHAPE that VBA copies off one sheet and pastes in another. It works just fine except I want the shape pasted in the center of the active screen so the user is greeted with this picture upon activation of the macro. Since the cursor is rarely if ever even close to the center of the screen, I'm not sure how to instruct VBA where exactly to paste the pic.
Here's my code. Any suggestions how to force VBA to paste this picture in the center of the active screen?
--Thankx
maruapo
w = ActiveWorkbook.Name
s = ActiveSheet.Name
Workbooks("Macros.xls").Activate
Sheets("Waiting Room").Visible = True
Sheets("Waiting Room").Activate
ActiveSheet.Shapes("OneMoment").Copy
Sheets("Waiting Room").Visible = False
Workbooks(w).Activate
Sheets(s).Activate
Application.ScreenUpdating = True
ActiveSheet.PasteSpecial Format:="MS Office Drawing Object", Link:=False, DisplayAsIcon:=False
Application.ScreenUpdating = False
ActiveSheet.Shapes("OneMoment").Delete