Message 1 of 3

Not applicable
07-21-2016
04:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've written some code which resizes/updates the active sheet's borders, title blocks, styles etc.
I'm having trouble with the revision table when resizing the sheet, our templates miss out a "GRID REF" column in A4 which is custom but already exists. When scaling down to A4 I can delete this column but cannot add it
Set RevTable = invDoc.ActiveSheet.RevisionTables(1)
If "A4" = SheetSize Then
If "A4" = SheetSize Then
If RevTable.RevisionTableColumns.Count = 4 Then
Else
RevTable.RevisionTableColumns.Item(3).Delete
End If
Else
If RevTable.RevisionTableColumns.Count = 4 Then
RevTable.RevisionTableColumns.Add (kRevisionTableCustomProperty,,"GRID REF",3)
Else
RevTable.RevisionTableColumns.Item(3).Delete
End If
Else
If RevTable.RevisionTableColumns.Count = 4 Then
RevTable.RevisionTableColumns.Add (kRevisionTableCustomProperty,,"GRID REF",3)
End If
End If
End If
The add line does not work, it says it should equal an expression but what and why?
Another thing that I would like to do is resize the column widths if possible but this is less important.
Thank you in advance!
Solved! Go to Solution.