weekFirst = System.Text.RegularExpressions.Regex.Replace(DaysLocation, “[^a-zA-Z]+”,String.Empty)
weekFirstAlphabetNumber = (Asc(weekFirst) - asc(“A”) +1) + 4
FridayLocation = Chr(Asc(“A”) + weekFirstAlphabetNumber -1)+weekSecond.ToString
In this way, the alphabet comes out as much as +4 in Monday’s Excel position, but if the ‘Z’ goes over, the ‘[’ comes out.
After “Z”, I want to make it come out like “AA”, “AB”, and “AC”
Yoichi
(Yoichi)
January 9, 2024, 8:40am
2
Hi,
Can you try UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter
method as the following?
UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(27)
Regards,
1 Like
I’m increasing the alphabet by +4 using ‘for attach’. M → T → AA should come out, but M → T → ‘[’ comes out
ppr
(Peter Preuss)
January 9, 2024, 8:58am
5
1 Like
Yoichi
(Yoichi)
January 9, 2024, 9:00am
6
Hi,
Can you try the following expression?
UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnLetterToColumnIndex("T")+7)
Regards,
1 Like
system
(system)
Closed
January 12, 2024, 9:01am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.