Error with recorded macro

I tried to record a Macro to do some repetitive stuff in the drawings I'm creating.

I hit the "Record" button, did the steps I wanted to automate, then hit "Stop".

When I try to run the macro, I get an error:

"Microsoft Visual Basic

Run-time error '91':

Object variable or With block variable not set

[End] [Debug] [Help]"

When I hit "Debug" the VB panel shows me that the error has occurred on the line:

myTable.Text(0, 0) = "A"

Now, I could understand getting such an error if I had hand-written the macro, and forgotten to initialize a variable or something. But I'm mystified as to why this would happen in a macro I recorded directly from the user interface.

I'm new to SW macros, and could use some guidance here. Is there a tutorial somewhere on getting started with macros in SW?

~Rick Berry

SolidworksApi macros