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: 1
Default Vba - restricting cell vallue

Hi all,

I need to restric the vallue of a cell, to this format:
"dd-mm-yy"

and prevent user inputing like this:
"dd.mm.yy" or "dd/mm/yy"

I tried using Excel - Data - Validation, but unsuccessfully.
Is there anyway to do this with Vba?
may be something like:

Workbooks(activeworkboo.name).Worksheets(activeshe et.name).Cells(x,y).Forma
= "dd-mm-yy"

But it has to PREVENT user's inputing.
Thanks in advance.
Aldo

--
Message posted from http://www.ExcelForum.com

 
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
Restricting Number of characters in a cell Colin Hayes Excel Worksheet Functions 9 September 11th 09 01:45 PM
Restricting cell selection Jemwig Excel Discussion (Misc queries) 3 March 16th 09 03:27 PM
Restricting Cell from being Printed Denis Excel Discussion (Misc queries) 7 May 29th 08 04:08 PM
Restricting Cell Format zhj23 Excel Discussion (Misc queries) 3 August 27th 05 02:53 PM
restricting data when other cell is empty. ZOHAR BATTERYWALA Excel Programming 1 April 10th 04 09:32 AM


All times are GMT +1. The time now is 06:15 AM.

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"