• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

search header name from list and find it in another sheet change dd/mm/yyyy format

baskar5353

New Member
hi,

i'm having "header" list in one sheets. i want to find the header which i have in "header" sheets find in another sheets and want to change the format as dd/mm/yyyy. how to do it in VBA
 
Sample workbook attached

Code:
Sub Macro1()

Dim Val As String

Val = Worksheets("Sheet1").Range("B1")

Worksheets("Sheet2").Select
Cells.Find(What:=Val, LookIn:=xlFormulas, LookAt:=xlWhole).Activate
ActiveCell.EntireColumn.NumberFormat = "DD/MM/YYYY"

End Sub
 

Attachments

  • DateFormat.xlsm
    17.5 KB · Views: 3

Hi !

Before to log in, when you enter this site forums,
read the second advice within the rollin' banner !
 
Back
Top