Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default direct to certain cells using drop down list


How do i direct the user to enter certain cells after a certain data
from a drop down list is chosen?

I want to make it such that unless the respective option in the drop
down list is chosen, the user cannot enter in the corresponding cells.

Thank you.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default direct to certain cells using drop down list

Courtesio99 wrote:
How do i direct the user to enter certain cells after a certain data
from a drop down list is chosen?

I want to make it such that unless the respective option in the drop
down list is chosen, the user cannot enter in the corresponding cells.


I would define named ranges corresponding to the items in the dropdown
list. I would start with all cells on the worksheet locked and the
worksheet protected. On selecting an item from the dropdown I would
unlock the relevant named range and lock all others. Something like
this:

Sub ComboBox1_Change()
With ActiveSheet
.UnProtect
.Cells.Locked = True
.Range(.ComboBox1.Value).Locked = False
.Protect
End With
End Sub

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down list for multi cells jsw Excel Discussion (Misc queries) 3 April 6th 09 06:44 PM
empty cells in the drop down list NirOrtal Excel Discussion (Misc queries) 7 November 14th 08 06:17 PM
Drop Down list that fills in other cells frankjh19701 Excel Worksheet Functions 1 May 15th 07 12:40 AM
How to get the trendline values in excel 03 direct into cells ? nygaard Charts and Charting in Excel 3 May 23rd 06 06:15 AM
drop down list that changes the data of 3 other cells Mark R Burgess New Users to Excel 2 August 2nd 05 05:15 PM


All times are GMT +1. The time now is 01:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"