Dear friends. I gave up so there is this thread. I am starting with file in .txt created by the outside device. The date is always in format d-mmm-yy. Can not change it (why?). Then I am copying /pasting the sheet on the sheet in excel. I am still not able to change the date format. THe vba code is not calculating following thing = worksheetfunction.weekday(cell1). If cell1 is in format m/d/yy then worksheetfunction.weekday works well if the cell1 is in format d-mmm-yy worksheetfunction.weekday(cell1) does not work. THe bad thing is that I am not able to change the date format after copying from .txt and pasting in excel sheet. I am not able to change date format before copying. Any suggestions??
Bookmarks