Hi,
Using Now() function i have displayed the date and time in cells(4,1) as 2/10/2015 15:20. However, in next cell i need to display the time with the addition of 2hrs without changing the format. I'm getting time mismatch error if i use the below code.
Code:
Cells(38, 8) = Now() + Time(2, 0, 0)
can anyone please let me know how to get display the output as 2/10/2015 17:20.
Thanks in advance.
Regards,
Dheepak.
Using Now() function i have displayed the date and time in cells(4,1) as 2/10/2015 15:20. However, in next cell i need to display the time with the addition of 2hrs without changing the format. I'm getting time mismatch error if i use the below code.
Code:
Cells(38, 8) = Now() + Time(2, 0, 0)
can anyone please let me know how to get display the output as 2/10/2015 17:20.
Thanks in advance.
Regards,
Dheepak.