Forum Discussion

kymichelle95's avatar
kymichelle95
Copper Contributor
Nov 15, 2022

Coding issue

I am trying to create a self grading document with coding. This is my first time coding. I am getting an error on the beginning line where I have typed:

 

Sub Document_Open () 

 

I followed a youtube video for instruction on this and did it identically to the video creator. I am getting the error message: Compile error: External name not defined

 

Please help!

  • That line should not cause a problem. However, as Charles has advised, the code in such a procedure will only run automatically if that line of code is in the ThisDocument object of the document or of the template from which it was created.

    Depending upon who is to be completing the "self grading document", you may run into issues with utilizing code as it will require that the document be saved as a Macro enabled document and for some of the users, your code may not run because of security settings on the user's computer.

    What is function is the code intended to perform?
    • kymichelle95's avatar
      kymichelle95
      Copper Contributor
      Honestly, I know nothing about coding and was just following a youtube video to create the document. I am creating a training system for my employer and we are including quizzes but they do not need to be self grading. But I would like to utilize the "developer" tab to create the quiz. Does this require any coding?

Resources