Hi,
if date is today means i want to select number of 10 in excel sheet .
is it possible?
could anyone help me plz…
Hi,
if date is today means i want to select number of 10 in excel sheet .
is it possible?
could anyone help me plz…
You mean you want to select 10 columns because of today’s date is 10 ??
int dayNum = DateTime.Now.Day
//will return 10 (10-Dec-2019)
Thanks @KarthikByggari,
particularly select 10 th column only,
because that is today’s date.
Do you have the header as date? Then using read column with that date.
Then, get the day number as said in the previous post.
Then convert day number into a equivalent column name.
In this case, columnName - J
Then use Read Range or select range activity with a range "J:J"
Regards,
Karthik Byggari
No, Don’t have header of date
Is it okay to assume that considering the month to be December, there could be columns from 1 1 to 31? In which case, the headers shall be static in the cells, B1, C1, D1, and so on.
Please confirm if this is the case?
yes @hacky,
Exactly same
Try like the following by converting the current date to excel column name.
Thats perfect!!!
ITS VERY EASY!!
So just read the entire sheet (using Read Range and Add Headers property to be checked) into variable - dtReadRaange
Use filter data table Activity go to “Output Columns” tab,
Select “Keep” and write this → Now.ToString(“dd”)
You can give the input datatable (dtReadRange) and output datatable (dtReadRangeNew)
Now, you have the entire column of the todays date day in the datatable (dtReadRangeNew)
Please mark the answer as “Solution” if you found it useful.
Regards,
@hacky
Please try using the the Read range activity (Workbook) and check.
Try to perform the testing Unit-by-unit to check where exactly is this issue coming.
I dont really think this error is related to Read range
Try to kill all the excel instances from Task Manager then check again.
Refer this post for the same issue,
Thanks @sarathi125 @hacky @KarthikByggari
it’s working fine now.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.