Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

Create Table in Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wilma2299@yahoo.com - 14 Nov 2006 05:06 GMT
Hi, I'm trying to create a table in word that uses user input boxes.
What I want, when the macro is run, an inputbox pops up asking for info
from the user and then returns that information into the table.  Then
moves right to the next cell and does the same thing.  There are 5
columns.  When the user comes to the last column and enters in the
information, another message box will ask if there are more items to be
added and if the answer is yes, then adds a new row and goes through
the same procedure as the row above.  Am I way over my head in trying
to create this?  Please help!!!
Stefan Blom - 14 Nov 2006 11:27 GMT
See http://gregmaxey.mvps.org/Repeating_Data.htm for an overview of
the various methods you can use.

But note that the most basic method sometimes will suffice. Just
pressing TAB in a table cell would move the cursor to the next cell,
and for the last cell, tabbing would add a new row.

Signature

Stefan Blom
Microsoft Word MVP

> Hi, I'm trying to create a table in word that uses user input boxes.
> What I want, when the macro is run, an inputbox pops up asking for
[quoted text clipped - 9 lines]
> trying
> to create this?  Please help!!!
wilma2299 - 14 Nov 2006 13:58 GMT
Thanks for the quick reply, but that's not exactly what I'm looking
for.  I know how to prompt the user for information using a textbox and
then getting that into a Word document.  What I'm trying to do is get
the user input into a designated cell.  I would also like the macro to
loop through if there are more than one row of data to be inserted.
Stefan Blom - 16 Nov 2006 09:23 GMT
Well, apparently I underestimated the complexity of the task. Assuming
that you are getting the data using code, you should be able to
temporarily store it in a dynamic array (possibly a two-dimensional
one), and then determine (perhaps based on the array dimension) how
many rows and columns are needed in the table, create the table and
insert the data in the required cells. This is all very theoretical,
and I'm not the person to create a working solution for you. Perhaps
someone else will join the discussion; if not, repost the question
describing how you are getting the data, what determines the size of
the table, where to put the data in the table, and any other relevant
information.

Signature

Stefan Blom
Microsoft Word MVP

> Thanks for the quick reply, but that's not exactly what I'm looking
> for.  I know how to prompt the user for information using a textbox and
> then getting that into a Word document.  What I'm trying to do is get
> the user input into a designated cell.  I would also like the macro to
> loop through if there are more than one row of data to be inserted.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.