laxminarayana
Board Regular
- Joined
- Nov 16, 2013
- Messages
- 56
Hi,
In the 5th line of the following code marked with red, i am trying to copy date from a cell.
How to do this?
Sub autotext()
If Worksheets("Sheet1").Range("B1").Value = Worksheets("Sheet1").Range("B3").Value Then
Worksheets("Sheet2").Activate
Range("D1").Select
Range("D1").Value = "This is the Date **\**\**** "
Else
Worksheets("Sheet2").Activate
Range("D1").Select
Range("D1").Value = "N/A"
End If
End Sub
Thank you
In the 5th line of the following code marked with red, i am trying to copy date from a cell.
How to do this?
Sub autotext()
If Worksheets("Sheet1").Range("B1").Value = Worksheets("Sheet1").Range("B3").Value Then
Worksheets("Sheet2").Activate
Range("D1").Select
Range("D1").Value = "This is the Date **\**\**** "
Else
Worksheets("Sheet2").Activate
Range("D1").Select
Range("D1").Value = "N/A"
End If
End Sub
Thank you