Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default insert validation in sheet

Hi,
How can I insert in my code function that set for a specific column the
validation condition of string 1-15 chars without blanks?

thanks.



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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default insert validation in sheet

You don't have to use a macro
Check out Datavalidation in the menubar

See text length

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"efi" wrote in message ...
Hi,
How can I insert in my code function that set for a specific column the
validation condition of string 1-15 chars without blanks?

thanks.



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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default insert validation in sheet

Try This

In a custom validation formula

=AND(ISERROR(FIND(" ",C1,1)),AND(LEN(C1)0,LEN(C1)<=15))

"C1" is a example cell


Regards Fernando Ortiz


"Ron de Bruin" escribió en el mensaje
...
You don't have to use a macro
Check out Datavalidation in the menubar

See text length

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"efi" wrote in message

...
Hi,
How can I insert in my code function that set for a specific column the
validation condition of string 1-15 chars without blanks?

thanks.



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

http://www.ExcelForum.com/





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default insert validation in sheet

Try This

In a custom validation formula

=AND(ISERROR(FIND(" ",C1,1)),AND(LEN(C1)0,LEN(C1)<=15))

"C1" is a example cell


Regards Fernando Ortiz


"Ron de Bruin" escribió en el mensaje
...
You don't have to use a macro
Check out Datavalidation in the menubar

See text length

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"efi" wrote in message

...
Hi,
How can I insert in my code function that set for a specific column the
validation condition of string 1-15 chars without blanks?

thanks.



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

http://www.ExcelForum.com/





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default insert validation in sheet

Hi,
I think that you didn't understand my problem, I will explain it
again:
I want in my code to access the variables of validation , how can I do
it , with whicj object.
Anyway thanks for your replies.



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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default insert validation in sheet

Hi Efi

Turn on your macro recorder and do the steps you want in DataValidation in the menubar


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"efi" wrote in message ...
Hi,
I think that you didn't understand my problem, I will explain it
again:
I want in my code to access the variables of validation , how can I do
it , with whicj object.
Anyway thanks for your replies.



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



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default insert validation in sheet

efi

You might want to have a look at Chip Pearson's pages on CF determination.

http://www.cpearson.com/excel/CFColors.htm

Gord Dibben XL2002

On Sun, 2 Nov 2003 01:34:48 -0500, efi
wrote:

Hi,
I think that you didn't understand my problem, I will explain it
again:
I want in my code to access the variables of validation , how can I do
it , with whicj object.
Anyway thanks for your replies.



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


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
insert sheet tab is not functioning and can't add new sheet LoLo Excel Worksheet Functions 5 April 2nd 23 07:06 PM
Insert Sheet Karthik Excel Worksheet Functions 2 March 13th 09 06:34 AM
Data Validation - Insert Row Alex Excel Worksheet Functions 3 February 29th 08 04:48 PM
insert query into excell sheet to update excell sheet and pivot table vbsolo Excel Discussion (Misc queries) 0 August 24th 05 12:41 PM
Embedding an "insert row" macro with data validation Mr. G. Excel Worksheet Functions 0 April 11th 05 06:09 AM


All times are GMT +1. The time now is 09:52 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"