this thread has been closed for a while, but i'm trying to create an add-in which is to be available to all my colleagues in the global template
the add-in will contain code that is currently in the modules of an existing spreadsheet.
the way i want it to work is that the code will run when a button on the toolbar is pressed and the code will do its magic on the spreadsheet that is currently open. perhaps this is the point of an add-in, i don't know, this is a learning curve for me.
trouble is, my code, which looks like this
Cells(lRow, 5).Formula = "=(C" & lRow & "/10)*D" & lRow
doesn't appear to do anything to a worksheet in the open workbook. is it doing something to a hidden worksheet in the .xla file, perhaps? how would i refer to worksheet in the open workbook? what if there are several workbooks open?
<panic>what should i do</panic>?
thanks
gusset