Issue changing agent skills through CMS

DanTheNam

New Member
Joined
Jun 24, 2017
Messages
1
Using below code, I am able to get excel to work with CMS, but it seems that my permissons are not traveling with the code. I get an error stating "Split/Skill Cannot be modified. No write permission on 665". I do have permission to 665 (and 669) when skilling manually. Any idea what I'm doing wrong here?


Sub Swap_Skill()Dim cvsApp As Object
Dim cvsConn As Object
Dim cvsSrv As Object
Dim Rep As Object
Dim Info As Object, Log As Object, b As Object
Dim AcmS As String

Set cvsApp = CreateObject("ACSUP.cvsApplication")
Set cvsConn = CreateObject("ACSCN.cvsConnection")
Set cvsSrv = cvsApp.Servers(1)
Set Rep = CreateObject("ACSREP.cvsReport")
Set cvsSrv = cvsApp.Servers(1)
AcmS = Range("K6").Value 'variable value, currently 1217259
On Error Resume Next
Set AgMngObj = cvsSrv.AgentMgmt
On Error Resume Next

Set AgMngObj = cvsSrv.AgentMgmt
ReDim SetArr(2, 3)
SetArr(1, 1) = Range("L4").Value 'variable value, currently 665
SetArr(1, 2) = 1
SetArr(1, 3) = 0
SetArr(2, 1) = Range("N4").Value 'variable value, currently 669
SetArr(2, 2) = 12
SetArr(2, 3) = 0

AgMngObj.AcdStartUp -1, "", cvsSrv.ServerKey, -1
AgMngObj.OleAgentSetSkill 1, "" & AcmS & "", 1, 0, 0, 0, 2, SetArr, ""

Set AgMngObj = Nothing
Set cvsApp = Nothing
Set cvsConn = Nothing
Set cvsSrv = Nothing
End Sub
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,792
Messages
6,174,610
Members
452,574
Latest member
hang_and_bang

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top