Date Format Issue

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
Hello one and all

I have a date format issue.
I am using Excel 2003
If i do a manuel Vlookup the answer is dates and they are fine.
If I record this action the macro converts some of the dates to the american format.
I have tried custom formating but this is not working

I know I have not provided any detail but is this a simple issue to resolve
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
My gut says you can just do a format() somewhere.. Post your macro in [ code ] blocks, and what format you need the date in.
 
Upvote 0
This is my code, It is crude but I am new to VBA

Workbooks.Open Filename:="C:\tmp\B3XOS.CSV"
Windows("Energy CVI v1.xls").Activate
Sheets("Data").Select
Range("Q6").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-12],B3XOS.CSV!C2:C4,3,FALSE)"
Selection.AutoFill Destination:=Range("Q6:Q1500"), Type:=xlFillDefault
Range("Q6:Q1500").Select
Selection.Copy

Date Format required dd-mm-yy
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top