Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 04-02-2016, 01:05 AM
LynnMac2016 LynnMac2016 is offline Drop down list and sublists in Word 2007 Windows 7 64bit Drop down list and sublists in Word 2007 Office 2007
Advanced Beginner
Drop down list and sublists in Word 2007
 
Join Date: Mar 2016
Posts: 30
LynnMac2016 is on a distinguished road
Default

Hi

Still struggling with this...apologies...I've not done visual basic since my Uni days but think this option is better than the userform option.

The code provided in the example...I thought it would be just a case of replace key words with my own words e.g.:-

If .Title = "Master" Then
Select Case .Range.Text
Case "Option1"
StrOut = "Apples,Bananas,Cherries,Dates"
Case "Option2"
StrOut = "Fire,Earth,Air,Water"
Case "Option3"
StrOut = "Scissors,Paper,Rock"
Case Else
StrOut = ""
End Select

Replace Option1 with Administration and then replace the StrOut with PA,Secretary. However, it doesn't change the result.

I then played about with InfoPath and actually got the drop downs to work but I can't copy and paste them into Word.

I'm almost ready to throw in the towel but thought I would try picking your brains one more time.

Any ideas, views, musings welcome.

Lynn :-)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down list and sublists in Word 2007 How to import list from Excel into drop-down list into word ahw Word VBA 43 02-28-2020 08:11 PM
Conditional Formatting Drop-Down List (WORD 2013) rogelinepaula Word VBA 1 10-15-2015 05:18 AM
Word 2010 Content Control help - Combo Boxes vs Drop Down List proghy Word 1 09-16-2014 02:01 PM
Drop down list and sublists in Word 2007 (Excel 2007) Need help with colour change when condition met in drop down list oalrashdan Excel Programming 1 12-13-2013 02:21 AM
Drop down list and sublists in Word 2007 drop down list from external data source Excel 2007? Intruder Excel 1 08-03-2012 05:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:09 PM.


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