While automating the excel I am getting the error for object reference

Mention the output in read range as dt.

image

2 Likes

Thank you so much sir , I am getting the result now… Marking it as a solution

1 Like

Hello @RobertD → Thank you so much sir , I am getting the result now… Marking it as a solution

2 Likes

You have marked your own “Thank you” post as solution. Please mark the post which gives you the solution as “Solution”.

Also, you can mark only one post as solution. :smiley:

3 Likes

Hello @Vivek_Arunagiri → I have added on more entry with today’s date in the workbook, in this case it should show date matched as log has been written, but it is still going in else part … ?

Hi Sachin,

I’m right now out of the country until the end of next week. So will not be able to support much through the forum since I have limited connectivity over here. However, to get the current date try using System.DateTime.Now.ToString(“dd/MM/yyyy”). It should work for you…

If it doesn’t work, feel free to ask the question in the forum as there are nice & friendly set of experts there :slight_smile:

Hope my answer helps and sorry for not being able to support much on this as I’m out of country…

Thanks

Lahiru

5 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.