VBA codeing issue

  mark_jm 13:24 17 Mar 06
Locked

I am trying to write a value to a table in word using input from a user form and a macro.
I have the following lines of code that just jeep crashing:

Dim MYTABLE As Table

Set MYTABLE = ActiveDocument.Tables(1)


MYTABLE.Cell(numc, 1) = UserForm.TextBox1.Value



where numc is an Intetger variable.
It crashes with a dialog box stating invalid use of property and the code from .Cell(numc his blued out ?

any suggestions

  VoG II 13:34 17 Mar 06

Is the userform actually called UserForm or should it be UserForm1

  mark_jm 16:11 18 Mar 06

yes the user form is "userform" not user form 1. I cant figure this one out at all?

This thread is now locked and can not be replied to.

Surface Pro (2017) vs Surface Pro 4

20 groundbreaking 3D animation technologies coming to Siggraph 2017

iPad Pro 12.9 vs Surface Pro 5