N
nelson ang
Hello
I created a protected document that has Editing Restrictions. I made exceptions for users to update 3 Text Form Field namely the Version No,Date and Document ID.
I have also created a macro button that will update all fields. These the issues i am facing.
1) i need to click the macro button before the macro works,the run macro on exit/calculate does not work(in both protected/unprotected).
The codes are as followed.
Sub updatefields()
Dim oStory As Range
Dim oField As Field
For Each oStory In ActiveDocument.StoryRanges
For Each oField In oStory.Fields
oField.Update
Next oField
Next oStory
End Sub
EggHeadCafe - Software Developer Portal of Choice
SQL Server Estimating Compression Savings
http://www.eggheadcafe.com/tutorial...3-ff0c0ea346fd/sql-server-estimating-com.aspx
I created a protected document that has Editing Restrictions. I made exceptions for users to update 3 Text Form Field namely the Version No,Date and Document ID.
I have also created a macro button that will update all fields. These the issues i am facing.
1) i need to click the macro button before the macro works,the run macro on exit/calculate does not work(in both protected/unprotected).
The codes are as followed.
Sub updatefields()
Dim oStory As Range
Dim oField As Field
For Each oStory In ActiveDocument.StoryRanges
For Each oField In oStory.Fields
oField.Update
Next oField
Next oStory
End Sub
EggHeadCafe - Software Developer Portal of Choice
SQL Server Estimating Compression Savings
http://www.eggheadcafe.com/tutorial...3-ff0c0ea346fd/sql-server-estimating-com.aspx