PC Review


Reply
Thread Tools Rate Thread

combobox - default value

 
 
=?Utf-8?B?SmltIGF0IEVhZ2xl?=
Guest
Posts: n/a
 
      19th Jun 2007
ComboBox1.Value = Sheet4.Range("G500").End(xlUp).Value

this value is unaceptable if "23.000456782" or such. If something like this
then reject and default to Sheet1.Range("N43"). If like "Msjdh-dgets" OK

If ComboBox1.Value = "what do I put here" Then ComboBox1.Value =
Sheet1.Range("N43")
--
Jim at Eagle
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      19th Jun 2007
> ComboBox1.Value = Sheet4.Range("G500").End(xlUp).Value
>
> this value is unaceptable if "23.000456782" or such. If something like
> this
> then reject and default to Sheet1.Range("N43"). If like "Msjdh-dgets" OK
>
> If ComboBox1.Value = "what do I put here" Then ComboBox1.Value =
> Sheet1.Range("N43")


Your example is not complete enough. Are you rejecting ALL numbers? Only
numbers of certain type or shape? Is there anything besides numbers that are
to be rejected?

Rick

 
Reply With Quote
 
=?Utf-8?B?SmltIGF0IEVhZ2xl?=
Guest
Posts: n/a
 
      20th Jun 2007
ComboBox1.Value = Sheet4.Range("G500").End(xlUp).Value
If IsNumeric(ComboBox1.Value) Then ComboBox1.Value = Sheet1.Range("N43")

Thanks Rick, for your interest. Took about a hour, I knew it was there
somewhere.
--
Jim at Eagle


"Rick Rothstein (MVP - VB)" wrote:

> > ComboBox1.Value = Sheet4.Range("G500").End(xlUp).Value
> >
> > this value is unaceptable if "23.000456782" or such. If something like
> > this
> > then reject and default to Sheet1.Range("N43"). If like "Msjdh-dgets" OK
> >
> > If ComboBox1.Value = "what do I put here" Then ComboBox1.Value =
> > Sheet1.Range("N43")

>
> Your example is not complete enough. Are you rejecting ALL numbers? Only
> numbers of certain type or shape? Is there anything besides numbers that are
> to be rejected?
>
> Rick
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Way for Combobox to default to last value? scubadiver Microsoft Access Forms 0 16th May 2008 01:31 PM
Combobox default value matty ratafairy Microsoft Access Forms 4 27th Feb 2008 08:59 AM
default value in combobox =?Utf-8?B?ZmFiZXJr?= Microsoft Access Form Coding 5 28th Oct 2005 08:10 PM
Default Value in a ComboBox Randy Harris Microsoft Access Getting Started 1 7th Nov 2003 10:32 AM
how to get default combobox Serguei Makacharipov Microsoft Access Forms 2 4th Nov 2003 04:51 AM


Features
 

Advertising
 

Newsgroups
 


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