Hi
I have a piece of code that starts as follows;
Sub UpdateCalc()
Set ShtSum = ActiveWorkbook.Sheets("Transactions")
lastrw = ShtSum.Cells(Rows.Count, "b").End(xlUp).Row
When running this code it breaks (highlighting "Set ShtSum") and gives me the following error;
Compile error
Variable not defined
What can be wrong?
Shouls i paste the entire code?
Thanks
Mark
I have a piece of code that starts as follows;
Sub UpdateCalc()
Set ShtSum = ActiveWorkbook.Sheets("Transactions")
lastrw = ShtSum.Cells(Rows.Count, "b").End(xlUp).Row
When running this code it breaks (highlighting "Set ShtSum") and gives me the following error;
Compile error
Variable not defined
What can be wrong?
Shouls i paste the entire code?
Thanks
Mark