Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have a Project Excel sheet that goves us the delivery time to finish a Project that our PM fills with some dates for each Project we are currently developing.
I have the next code but the date on the spreadsheet comes back as numbers in the custom Iproperty,
the custom iprop does not get any value if I set it as Date, and gives me random numbers if I set it up as Text.
We search the row by Project name
SyntaxEditor Code Snippet
Dim oPROJ As String Dim oDATE As String oPROJ = iProperties.Value("Project", "Project") 'oDATE = iProperties.Value("Custom", "DEADLINE") GoExcel.Open("X:\ILOGIC\PROJECT_TEST.xlsx", "CURRENT") For rowPR = 3 To 100 If (GoExcel.CellValue("A" & rowPR) = oPROJ) Then oDATE = GoExcel.CellValue("B" & rowPR) iProperties.Value("Custom", "DEADLINE")= oDATE Exit For End If Next GoExcel.Save GoExcel.Close
Solved! Go to Solution.