Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 05-01-2020, 03:42 PM
macropod's Avatar
macropod macropod is offline Use Drop down to populate other categories Windows 7 64bit Use Drop down to populate other categories Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try the attached Word document and Excel workbook. Upon opening, the document looks for the an Excel workbook named 'PupilData.xlsx' in your documents folder - so that's where you should save the sample workbook for now. That workbook is assumed to have five columns (A-E) on 'Sheet1' for each pupil:
• given name
• family name
• class
• teacher
• attendance
The workbook & worksheet names can both be changed in the macro that drives the process.

As coded, the macro updates the document from the 'PupilData.xlsx' workbook each time it is opened. That, of course means any existing selections are wiped each time. Ideally, though, you'd create a template with the code and make a minor change to it so that it updates only when a new document for a given student is created. We can address that later. Have a play and see if it does what you want.
Attached Files
File Type: docm Pupil Assessment.docm (46.5 KB, 9 views)
File Type: xlsx PupilData.xlsx (10.9 KB, 8 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate grocery list from drop down menu jlshanke Excel 3 08-21-2018 07:28 AM
Use Drop down to populate other categories Auto Populate Text On Dependent Drop Down Exit GregStewartPTC Word VBA 2 02-27-2017 05:37 AM
Categories (2010) - how to edit drop down list for assignment to contact NancyZ Outlook 0 07-10-2015 06:20 AM
How to create a drop down list with sub categories Gooford Word 0 06-18-2014 03:46 AM
Populate a table based on choices from drop down menu Xaand Word VBA 0 02-25-2014 11:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft