Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Get data from Excel-cell and check format

Hi! I am writing a macro for a spreadsheet. You are supposed to write two
dates into the spreadsheet in two different cells. When a button is pressed
the program shall read the text in the cells and check to see if they are in
the right format e.g. 2006-06-14 and not 06-06-04 i.e. YYYY-MM-YY.
Help!!!!!!!!!!!
--
I am very thankful for any fast assistance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Get data from Excel-cell and check format

Why does the sheet have TEXT in these cells? Use data validation to
check for date, and set the format of the cells to the format you want.
SamanthaK wrote:
Hi! I am writing a macro for a spreadsheet. You are supposed to write two
dates into the spreadsheet in two different cells. When a button is pressed
the program shall read the text in the cells and check to see if they are in
the right format e.g. 2006-06-14 and not 06-06-04 i.e. YYYY-MM-YY.
Help!!!!!!!!!!!
--
I am very thankful for any fast assistance!


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
Excel could not find the data ....check format Sarah H Pearson Excel Discussion (Misc queries) 0 October 27th 09 05:27 PM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Cell Format Check Rich[_30_] Excel Programming 3 May 17th 06 04:54 PM
check the cell format by function or vba code Joachim[_2_] Excel Programming 1 March 21st 05 12:29 PM
Check cell contents then format as locked Katherine Excel Programming 3 February 1st 05 12:48 PM


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