+ Reply to Thread
Results 1 to 6 of 6

Import Data to Word UserForm from Excel spreadsheet

  1. #1
    Registered User
    Join Date
    08-31-2014
    Location
    Edmonton, Alberta, Canada
    MS-Off Ver
    2010
    Posts
    27

    Import Data to Word UserForm from Excel spreadsheet

    Hey there. I am still a little new at this and have struggled through a lot of my project already. I have reached a snag.

    I currently have a project built in Word that exports UserForm data to a spreadsheet. I want users to be able to retrieve a specific of their choosing from the spreadsheet and import it into the UserForm again. Basically creating a save and open feature within the project.

    I have been fidgeting around with using a ListBox to display all candidates in the spreadsheet (limiting the display to just a few specific columns), but so far have had very little success.

    If anyone has any advice on something that would work for this, it would be greatly appreciated.

    Thanks!

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Import Data to Word UserForm from Excel spreadsheet

    Cross-posted at: http://www.vbaexpress.com/forum/show...el-spreadsheet
    Please read Excel Forum's Cross-Posting policy in rule 8: http://www.excelforum.com/forum-rule...rum-rules.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Registered User
    Join Date
    08-31-2014
    Location
    Edmonton, Alberta, Canada
    MS-Off Ver
    2010
    Posts
    27

    Re: Import Data to Word UserForm from Excel spreadsheet

    Anyone have any ideas?

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Import Data to Word UserForm from Excel spreadsheet

    Extracting data from an Excel worksheet to populate a userform in Word isn't overly complicated. Depending on the workbook structure, you may not even need to open the workbook. Show us your code and explain what's not working & why.

  5. #5
    Registered User
    Join Date
    08-31-2014
    Location
    Edmonton, Alberta, Canada
    MS-Off Ver
    2010
    Posts
    27

    Re: Import Data to Word UserForm from Excel spreadsheet

    I actually removed my code because it wasn't working, so I am starting from scratch. Do you want me to upload the entire project's code?

  6. #6
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Import Data to Word UserForm from Excel spreadsheet

    No, we only need to see the part pertaining to populating the userform that you're having trouble with - including the code that access Excel.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 05-17-2018, 07:30 PM
  2. Can I import data from Word to Excel
    By inr21 in forum Excel General
    Replies: 2
    Last Post: 03-13-2016, 10:10 PM
  3. Replies: 3
    Last Post: 10-03-2015, 04:22 AM
  4. Import Word data to Excel
    By agpdg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2014, 11:55 AM
  5. Import data from Word doc to Excel fields
    By Grave in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2011, 06:22 PM
  6. Help Please:( Import Excel Data To Word
    By hennessey in forum Excel General
    Replies: 3
    Last Post: 02-26-2006, 01:15 PM
  7. Replies: 0
    Last Post: 07-10-2005, 05:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1