Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-22-2017, 12:08 AM
LaurenM LaurenM is offline Dropdown dependencies with multiple dropdowns Windows XP Dropdown dependencies with multiple dropdowns Office 2010 32bit
Novice
Dropdown dependencies with multiple dropdowns
 
Join Date: Nov 2017
Posts: 14
LaurenM is on a distinguished road
Default

Thank you Macropod

At the moment I have this:

Code:
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
Dim i As Long, StrDetails As String
With ContentControl
  If .Title = "CHOOSE SECTOR" Then
  For i = 1 To .DropdownListEntries.Count
    If .DropdownListEntries(i).Text = .Range.Text Then
      StrDetails = Replace(.DropdownListEntries(i).Value, "|", Chr(11))
      Exit For
    End If
  Next
    TextBoxLauren.Text = StrDetails
   ElseIf .Title = "CHOOSE SECTOR XHO" Then
        For i = 1 To .DropdownListEntries.Count
        
        If .DropdownListEntries(i).Text = .Range.Text Then
        StrDetails = Replace(.DropdownListEntries(i).Value, "|", Chr(11))
        Exit For
        End If
    Next
    TextBoxLauren.Text = StrDetails
    Else
End If

End With

End Sub
I also need to lock the previous outputs so that if the sector changes mid report (in a new section) the previous outputs will remain unchanged. I hope this makes sense. Thank you in anticipation.
Attached Images
File Type: jpg Section Headers 1.jpg (80.1 KB, 27 views)
File Type: jpg Section Headers 2.jpg (20.6 KB, 27 views)

Last edited by macropod; 11-22-2017 at 01:05 AM. Reason: Added code tags
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdown dependencies with multiple dropdowns Multiple entries in dropdown lists paul_pearson Word VBA 151 10-18-2023 04:23 PM
Dropdown dependencies with multiple dropdowns Multiple Selection Dropdown list ajanson Word VBA 36 07-15-2019 08:16 PM
Dropdown dependencies with multiple dropdowns Dropdown boxes to multiple fields? Nukedaddy Word 3 09-16-2016 06:50 AM
Dropdown dependencies with multiple dropdowns Content Control Dropdown Dependencies asteinroeder Word VBA 5 10-28-2015 03:56 PM
Multiple resource Dependencies / Mapping Sherry Project 3 04-03-2014 08:03 AM

Other Forums: Access Forums

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