PPRuNe Forums - View Single Post - Excel/VBA date format query
View Single Post
Old 27th August 2014 | 11:25
  #1 (permalink)  
BOAC
Per Ardua ad Astraeus
 
Joined: Mar 2000
Posts: 18,575
Likes: 4
From: UK
Excel/VBA date format query

VBA module copies a date (dd/mm/yyyy) from a TextBox on sheet A to new Sheet B column B. All well until day >12 when it pastes the date as text only.

Code does
Code:
Cells(z, 2) = Format(TextBox2.Text, "dd/mm/yyyy")
PC is set for UK data 'short' format
Column B is set for date format dd/mm/yyyy

Cannot seem to crack this one!
BOAC is offline  
Reply