Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #24  
Old 09-07-2017, 02:51 PM
macropod's Avatar
macropod macropod is offline Populate Content Control Dropdowns from Excel Windows 7 64bit Populate Content Control Dropdowns from Excel Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,512
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

Hi Deirdre,

The 'Research' problem was caused by the 'Master List of Program Goals and Objectives' workbook having a trailing space in the worksheet name (i.e. 'Research ' instead of 'Research'). Deleting that space will prevent the problem occurring; I've also modified the code to trim the worksheet names, which will likewise overcome it.

As for the name, I'd just call the template a 'Lesson Plan Template'. To be sure, it gets its data from two Excel workbooks, but that doesn't mean they need to be referred to in the naming. Those workbooks exist only to make maintenance at your end a bit easier; I could have hard-coded all their data in the template - but then it'd be a nightmare for anyone else to update.

All the coding is done in Visual Basic for Applications (VBA), a programming environment built into Office. In Office parlance, VBA and macros refer to the same thing; though most people refer to macros when talking about something they've created using the macro recorder. The code I've written for this project goes way beyond anything the macro recorder is capable of generating, though. If you want to see the code, simply open the template or create a document from it and press Alt-F11 to open the Visual Basic Editor.

Forums like this exist to help people develop solutions to their problems. Occasionally, though, people who support such forums go beyond that and develop complete solutions. You'll probably know the adage "Give a man a fish and he'll have a meal for a day. Teach a man to fish and he'll have meals for a lifetime". In this case, you've been given the fish, but it also helps me hone my VBA skills (all of which are self-taught). Enjoy.
Attached Files
File Type: dotm Lesson Plan Template.dotm (62.6 KB, 101 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
excel formula while using dropdowns rjf1127 Excel 12 01-25-2017 10:53 AM
Populate Content Control Dropdowns from Excel How to populate dependent dropdowns and auto-fill text fields simultaneously? vera Word VBA 1 10-07-2016 07:41 PM
Populate Drop-Down Content Control from CustomXMLPart added to the Document KhmerBoi1 Word VBA 0 05-11-2016 01:10 PM
Have Text Entered in Content Control / PreDefined Field Populate Field in Footer bzowk Word 1 04-14-2016 11:50 AM
Populate Content Control Dropdowns from Excel Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:17 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