All,
I have a macro that does some error checking on the user's input, changes the control/shape text and assigned macro, and then save the file to a SharePoint site. The problem arrises when the macro changes the control/shape text; for some people it works without issue (like myself) and for others they get an error "400" (in actuality it's a runtime error 1004, unable to set the text property... but from a user perspective they see a 400 error).
The worksheets are protected; however, in the code I unprotect the sheets prior to the section of code I have posted below (it's a lot of code, so i'm just posting the relevant section.
If someone has a better way of performing the actions I am attempting to accomplish I'm all eyes. Please note, the reason I am changing the text and assigned macro of the control/shape is that this is part of a process involving different people (e.g. one person initiates the process, uploads the workbook, another person does another portion of the process, etc.).
Any help with this baffling problem would be greatly appreciated!
Thanks!
I have a macro that does some error checking on the user's input, changes the control/shape text and assigned macro, and then save the file to a SharePoint site. The problem arrises when the macro changes the control/shape text; for some people it works without issue (like myself) and for others they get an error "400" (in actuality it's a runtime error 1004, unable to set the text property... but from a user perspective they see a 400 error).
The worksheets are protected; however, in the code I unprotect the sheets prior to the section of code I have posted below (it's a lot of code, so i'm just posting the relevant section.
If someone has a better way of performing the actions I am attempting to accomplish I'm all eyes. Please note, the reason I am changing the text and assigned macro of the control/shape is that this is part of a process involving different people (e.g. one person initiates the process, uploads the workbook, another person does another portion of the process, etc.).
Any help with this baffling problem would be greatly appreciated!
Thanks!
Code:
'Change Send and upload Macro Button to Sales Engineering Manager
Worksheets("CONTACTS").Activate
Worksheets("CONTACTS").Shapes("Button 2883").Select
Selection.Characters.Text = "Save File and Send to Sales Engineering Manager"
With Selection.Characters(Start:=1, Length:=47).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 14
End With
Selection.OnAction = "Sheet14.SendFormToSEM"
Worksheets("SITE INFORMATION").Activate
Worksheets("SITE INFORMATION").Shapes("Button 3140").Select
Selection.Characters.Text = "Save File and Send to Sales Engineering Manager"
With Selection.Characters(Start:=1, Length:=47).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 14
End With
Selection.OnAction = "Sheet14.SendFormToSEM"
Worksheets("CONTACTS").Activate
Range("H6:X6").Select