Hi there! Very nice forum here with nice people. I learn a lot of others' postings and got quick replies on my first posting last week. Awesome!
here is a 2nd one.
I've got problems with date format.
I copy and pastespecial(values) data into a worksheet where some calculations are done (all with VBA).
The data that concerns a date are then still in the my preferred ddmmyyyy-format.
Yet, as i use the date in a conditional formula, the VBAcode treats the date automatically as mmddyyyy. You may understand that this is annoying. the code is similar to:
Also if I then paste the output the dateformats change from ddmmyyyy to mmddyyyy. Is their some code to prevend this?Code:MyArray()
MyArray=range("A2:F100")
Cells(1,2) = MyDate
Do Until MyDate>EndDate
Do Until MyArray(row,2)<>MyDate
' perform some action
row=row+1
Loop
MyDate=MyDate+1
Loop
I've been searching a bit with F1 but couldn't find a proper solution.
I expect this should be some small setting.
Thanks