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 / February 2006

Tip: Looking for answers? Try searching our database.

Populating Excel Worksheet with data from Word VBA UserForm

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zoltar54 - 09 Feb 2006 14:41 GMT
I am trying to find a method to populate an excell sheet with information
that is entered into a Word userform that I have created.  I am quite new to
VBA and have had great difficulty in finding a solution.  Can someone please
point me towards the light!
Tony Jollans - 09 Feb 2006 15:42 GMT
Word UserForm, Excel UserForm, they're both the same.

If you have to run from Word, you'll need to use Automation to talk to
Excel, something like ..

   Set xlApp = CreateObject("Excel.Application")
   Set xlBook = xlapp.Workbooks.Add
   Set xlSheet = xlwb.Sheets(1)

You can then reference individual cells like this ...

   xlSheet.Cells(_row_, _column_)

And, when you're done ...

   xlBook.SaveAs ...
   xlBook.Close
   xlApp.Quit

If you want more detail, I suggest you ask in an Excel newsgroup - and
provide details about what is on your yserform and how you want it arranged
in a worksheet.

--
Enjoy,
Tony

> I am trying to find a method to populate an excell sheet with information
> that is entered into a Word userform that I have created.  I am quite new to
> VBA and have had great difficulty in finding a solution.  Can someone please
> point me towards the light!
Zoltar54 - 09 Feb 2006 16:01 GMT
Thanks a million, I'll give this a shot and follow-up in an excel group.

Z

> Word UserForm, Excel UserForm, they're both the same.
>
[quoted text clipped - 29 lines]
> please
> > point me towards the light!
 
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.