Hi all. below is a copy of my vba code. I have an application from Rockwell automation called, factory talk view. Its object orientated software for displaying values and status of real plant time operation. Any way, it has a built in vba editor. I have setup the following vba code, to allow the two tag objects named "tag1" and "tag2", to be written to the cells A1 and B1. when "button4_relased" function occurs, the vba code executes, excel opens, writes the defined tag object values to the cells, saves the spreadsheet, then excel closes. This operates fine, but I need to change this so each time the function is called, the tag values are written to the next row, and not over A1 & B1 constantly. I can change .cells(1, "A") so 1 becomes a variable, but how do I read what the last empty cell is in the column? help please Anthony
Bookmarks