object variable/with block variable not set

T

TRM

I am getting the error, object variable/with block variable not set... I have
the oApp set. I don't understand why I'm getting this error. I have tried
setting oApp to the active document, and another variable.

Dim strFlowChart As String
strFlowChart = strPath & strDocName
Set oApp = CreateObject("igrafx.Application.8")
oApp.ActiveDocument.Diagrams.Item(strDocName).ActivateDiagram
oApp.PageLayout.LeftFooter = "&L" & "Approved Version: " & Revision
oApp.DefaultFilePath = "F:\SOP\PBFlowcharts\"
oApp.Save
oApp.Quit
 
G

Graham R Seach

You didn't say where you're getting the error, but I can't see where you've
declared oApp.

Dim oApp As Object

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top