LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Code Not Recognizing Value in Drop-Down Menu

I'm using VBA to put a drop-down list in a cell, with the following items a
user can select from: 1,2,3,4,5,6,7,8,9,10,11+

In later code, when I try to reference the response for this cell by saying:
If Target.Address = $C$1 Then
If Target.Value = "1", Then unhide rows xx:xx
If Target.Value = "2", Then unhide rows xx:xx
If Target.Value = "3", Then unhide rows xx:xx
.....it works fine. But when I get to
If Target.Value = "11+"
.....Excel does not recognize what to do. I need to keep the cell (C1)
formatted as a number.

Can someone advise how to fix this?

 
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
VBA code for drop down menu problem. mj_bowen Excel Discussion (Misc queries) 5 February 6th 10 12:10 PM
Drop dwn menu. Formula to count selection frm menu in anoth cell? ggoldber Excel Worksheet Functions 1 June 4th 08 02:21 PM
recognizing double digit numbers in code DB Excel Discussion (Misc queries) 3 March 2nd 07 04:43 PM
Data Validation - Code Not Recognizing Something Paige Excel Programming 4 April 6th 05 05:27 PM
Recognizing something is being pasted in code. Bob Holmes Excel Programming 3 May 20th 04 03:25 PM


All times are GMT +1. The time now is 11:56 PM.

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

About Us

"It's about Microsoft Excel"