VBA learner ITG
Active Member
- Joined
- Apr 18, 2017
- Messages
- 272
- Office Version
- 365
- Platform
- Windows
- MacOS
Good afternoon,
I have the below VBA code which references a cell in another tab of a project document and returns the data from my SBD_Data tab.
With Range("W6:W2151")
.Formula = "=SDB_Data!V8"
.Value = .Value
EndWith
However, the issue i can't seem to resolve is that the cell that is being referenced is a time field and the answer should be exactly as the field.
However when the code is run its returning a 0.
To complicate the issue is that I can't change the format of where the answer is going to as that field needs to be be a general field.
so the answer i am expecting to see is 00:00:00 and not 0.
IS IT POSSIBLE TO GET THE DATA TO BE 00:00:00 WITHOUT CHANGING THE FORMAT FROM GENERAL TO A TIME FIELD HH:MM:SS?
I have the below VBA code which references a cell in another tab of a project document and returns the data from my SBD_Data tab.
With Range("W6:W2151")
.Formula = "=SDB_Data!V8"
.Value = .Value
EndWith
However, the issue i can't seem to resolve is that the cell that is being referenced is a time field and the answer should be exactly as the field.
However when the code is run its returning a 0.
To complicate the issue is that I can't change the format of where the answer is going to as that field needs to be be a general field.
so the answer i am expecting to see is 00:00:00 and not 0.
IS IT POSSIBLE TO GET THE DATA TO BE 00:00:00 WITHOUT CHANGING THE FORMAT FROM GENERAL TO A TIME FIELD HH:MM:SS?