Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am receiving an error 'Macro parse failed. Functionality was lost' when a macro is executed to create a cyclic group. This is only happening when using the Access Point. The desktop client works fine. Below is the Macro code. Does anybody know why this may be happening?
sub mSetDatesCyclicGroup
SET x = ActiveDocument.Variables("vDateConditon")
SET y = ActiveDocument.Variables("vMonthEndDisplay")
If x.GetContent.String = "1" Then
If y.GetContent.String = "0" THEN
ActiveDocument.RemoveGroup "Dates"
set gr=ActiveDocument.CreateGroup("Dates")
gr.AddField "MonthEnd"
gr.AddField "WeekEnding"
gr.AddField "Date"
set gp = ActiveDocument.GetGroup("Dates").GetProperties
gp.IsCyclic = true
ActiveDocument.GetGroup("Dates").SetProperties gp
ActiveDocument.GetApplication.Refresh
y.SetContent "1",true
End If
Else
If y.GetContent.String = "1" THEN
ActiveDocument.RemoveGroup "Dates"
set gr=ActiveDocument.CreateGroup("Dates")
gr.AddField "MonthEnd"
set gp = ActiveDocument.GetGroup("Dates").GetProperties
gp.IsCyclic = true
ActiveDocument.GetGroup("Dates").SetProperties gp
ActiveDocument.GetApplication.Refresh
y.SetContent "0",true
End If
end if
end sub
Thanks
Nilesh
Hi Saurabh,
I am not sure and did not look into this any further after it was identified as a bug.
Nilesh
Hi Saurabh,
I am not sure and did not look into this any further after it was identified as a bug.
Nilesh
Hi Saurabh,
I am not sure and did not look into this any further after it was identified as a bug.
Nilesh
The only solution I found to my problem was as suggested by Joshua Campbell
Press CTRL + SHIFT +M.
Thanks