Thread: Counter
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett[_4_] Don Guillett[_4_] is offline
external usenet poster
 
Posts: 2,337
Default Counter

In the thisworkbook module in the workbook_open macro use
sheets("sheet2").range("a1").value=sheets("sheet2" ).range("a1")+1

Don Guillett
SalesAid Software
Granite Shoals, TX

"Andrew" wrote in message
...
Everytime my workbook opens, I want a new number assigned
to a worksheet, simply 1 plus the last number. I keep
getting a circular reference. Any ideas?

Thank you!