Table cell Text not inputting from Command button on User Form

C

Cory

I am trying to use a User Form to gain input from User, set those inputs as
variables and set those variables values as the text in table cells on a
publication. I am using something similar to :

ActiveDocument.Pages(1).Shapes(10).Table.Rows(1).Cells(1).TextRange.Text =
vGeoCoords

This works just fine when executed as the only line in a macro with
vGeoCoords changed for "Hello World". Sure enough, Hello world is inserted
in the Table. However when used as the only line in the OK_Click() for the
User Form Command Button, it does nothing... The User Form comes up. I can
type in the Textboxes, Even though I commented out all of the varaible and am
still using "Hello World" it still refuses to enter anything in the table.
No error, no warning. I originally had the .Hide for the userform after it
and it refuses to do that. Even for the Cancel button. I am starting to
wonder if the UserForm itself is the culprit...


Cory
 

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