Hi ExcelForum members,
I am a newbie in excel vba. I am facing a problem in writing a code for the following scenario.
I have a spreadsheet. In this sheet the data is added daily so one column is increased everyday. The rows may also be increased. What I am trying to do is to sum the data in each row for a range of first cell in the row to the last non empty cell in that row and this has to be done for all the rows. So I thought the for loop would be helpful for such requirement and I tried to write the following code. But unable to write the sum formula in the last empty cell in a row and I get the value error. The code is as follows.....
Please see the attachment.![]()
Please Login or Register to view this content.
Any help would be appreciated. Thanks in advance.
Bookmarks