Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default creating a function

I would like to create a function or soemthing that checks to be sure the
length of a certain cell is 5 characters, no more or less; whenever the user
leaves that cell. It can be if they hit the "enter" key, or an arrow key,
etc.

The other thing I need to do is to write this function (or whatever) in a
new spreadsheet / workbook.

My macro is going to check for a specific file name and if that file is not
found, it will create the file. However, the new file has to have the same
capabilty to check that certain cell for 5 characters.

Any suggestions on how this could be accomplished would be appreciated.
Thanks for the help..........
--
JT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default creating a function

You can use Data Validation from the Data menu to restrict text
length to 5 characters.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"JT" wrote in message
...
I would like to create a function or soemthing that checks to be
sure the
length of a certain cell is 5 characters, no more or less;
whenever the user
leaves that cell. It can be if they hit the "enter" key, or an
arrow key,
etc.

The other thing I need to do is to write this function (or
whatever) in a
new spreadsheet / workbook.

My macro is going to check for a specific file name and if that
file is not
found, it will create the file. However, the new file has to
have the same
capabilty to check that certain cell for 5 characters.

Any suggestions on how this could be accomplished would be
appreciated.
Thanks for the help..........
--
JT



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
Need help creating a function chrspty Excel Worksheet Functions 2 August 1st 08 04:48 PM
Creating a Function Stu Gnu[_2_] Excel Worksheet Functions 4 August 31st 07 08:44 AM
Creating a Function Stu Gnu[_2_] Excel Worksheet Functions 2 August 30th 07 11:47 AM
Need help creating a function nander Excel Discussion (Misc queries) 3 February 20th 06 04:57 AM
Creating a Function teresa Excel Programming 5 April 6th 05 01:59 PM


All times are GMT +1. The time now is 09:03 PM.

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"