Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm pretty sure this was working Friday afternoon - test again Monday morning & an error's appeared!
Object reference not set to an instance of an object.
The problem is this line:
oCurrentNumber = oDoc.ActiveSheet
SyntaxEditor Code Snippet
ThisDrawing.ResourceFileName = "C:\Vault Views\PDM01\Templates\test1.idw" ThisDrawing.KeepExtraResources = True MessageBox.Show("Line 4", "Title") Dim oDoc As DrawingDocument MessageBox.Show("Line 8", "Title") Dim oCurrentNumber As Sheet MessageBox.Show("Line 12", "Title") oCurrentNumber = oDoc.ActiveSheet MessageBox.Show("Line 16", "Title") oCurrentNumber.Activate
Regards
Andrew
Solved! Go to Solution.