1.Dim d As String
2.d = Format(Now(), "dddd, yyyy mmmm dd")
3. MsgBox (d)
4.If Dir("c:/", Photos & d) = "" Then
5.rspCreate = MsgBox("Directory doesn't exist, do you wish to create it?", vbYesNo)
6.If rspCreate = vbYes Then
7. MkDir "My Documents/swapna"
8. End If
i want to create a folder with name photo+currentdate
so i used the above code
but im getting the error type mismatch in line no 4
i want to convert the data variable to string
plz help