VBA codeing issue

  mark_jm 13:24 17 Mar 2006
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 2006

Is the userform actually called UserForm or should it be UserForm1

  mark_jm 16:11 18 Mar 2006

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.

Elsewhere on IDG sites

The Evil Within 2 review-in-progress

InVision Studio takes on Adobe XD and Sketch

iPhone X news: Release date, price, new features & specs

Comment transformer un iPhone en borne Wi-Fi ?