Excel VBA Does Not Reflect Data Extracted from Other Sheets
I would like to extract the data of Excel sheet from other sheets, but the data using '=' is not reflected.Is it a problem to have other data in the same cell?
Actual code:
BASEDATE >= TO_DATE('Original sheet!G7’,‘YYYY/MM/DD’)
I would like someone to give me a clue.Thank you for your cooperation.
vba excel
Dim BASEDATE As Date
Dim TO_DATE As Date
BASEDATE = #2023/03/31# 'Subscribe Date Type Value
TO_DATE = CDate(Sheets("Original Sheet").Range("G7").Value") 'Convert string to date type
If BASEDATE >= TO_DATE Then
If BASEDATE is TO_DATE or higher, do something
End If
© 2024 OneMinuteCode. All rights reserved.