Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2011, 04:52 AM
ilkks ilkks is offline How to unlock Drop-Down list Windows Vista How to unlock Drop-Down list Office 2007
Novice
How to unlock Drop-Down list
 
Join Date: May 2011
Posts: 23
ilkks is on a distinguished road
Default How to unlock Drop-Down list

I have Word 2007 and I am using Drop-Down lists. When I choose some item and try to change its value program says: "This modification is not allowed because the selection is locked". I want to have an option to either choose value from drop-down list or write the value manually. How Drop-Down List can be unlocked?
Reply With Quote
  #2  
Old 05-05-2011, 06:47 PM
macropod's Avatar
macropod macropod is offline How to unlock Drop-Down list Windows 7 32bit How to unlock Drop-Down list Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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 Ikks,

Dropdown formfields don’t support text entry. To provide that facility, you could provide an option in the dropdown for 'free text' and use an on-exit macro with an Inputbox to insert the user’s 'free text' into the dropdown. For example, suppose you have a dropdown with 5 items, the last of which offers free text entry (e.g. an 'Other' option). Adding the following on-exit macro to the formfield will provide that:
Code:
Sub FreeText()
Dim StrNew As String, i As Long
With Selection.FormFields(1).DropDown
  i = .ListEntries.Count
  If .Value = i Then
    StrNew = Trim(InputBox("Input your text", "Data Entry", .ListEntries(i).Name))
    If StrNew = vbNullString Then Exit Sub
      .ListEntries(i).Delete
      .ListEntries.Add StrNew
      .Value = i
  End If
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-05-2011, 11:33 PM
ilkks ilkks is offline How to unlock Drop-Down list Windows Vista How to unlock Drop-Down list Office 2007
Novice
How to unlock Drop-Down list
 
Join Date: May 2011
Posts: 23
ilkks is on a distinguished road
Default

Thanks, it works now. I was wondering is it possible to pick values in Drop-Down Form Fields without protecting the whole document? In this document it is essential that all elements in the document can be edited. It is complicated to protect/unprotect form just in order to use Drop-Down Lists.
Reply With Quote
  #4  
Old 05-05-2011, 11:42 PM
macropod's Avatar
macropod macropod is offline How to unlock Drop-Down list Windows 7 32bit How to unlock Drop-Down list Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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 Ikks,

If you put Section breaks either side of the dropdown, you can protect only the dropdown's Section and the rest of the document can be edited. Do note, though, that some editing restrictions will remain in the other parts of the document.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 05-06-2011, 12:19 AM
ilkks ilkks is offline How to unlock Drop-Down list Windows Vista How to unlock Drop-Down list Office 2007
Novice
How to unlock Drop-Down list
 
Join Date: May 2011
Posts: 23
ilkks is on a distinguished road
Default

Thank you very much macropod! Works great now!
Reply With Quote
Reply

Tags
drop-down list unlock



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to unlock Drop-Down list Conditional data validation (list drop-down) click4akshay Excel 2 04-28-2011 01:51 PM
Adding a country drop-down list iyavor Word 0 10-27-2010 03:51 AM
Create Drop Down List Box hbradshaw Word VBA 0 09-27-2010 06:24 AM
Drop Down List and Functions (Linking) sten Excel 0 03-17-2010 03:03 PM
Long List for drop down box DLo99 Word 0 02-28-2010 08:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:04 AM.


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