#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Counter

Where is the code and what do you have written ?

if you add this to ThisWorkBook for example

Private Sub Workbook_Open()
Sheet1.Cells(1, 1).Value = Sheet1.Cells(1, 1).Value + 1
End Sub

It will add a value to the first cell in the workbook and each time the
workbook is opened the value will be incremented by 1.

Mark D

"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!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Day counter poohgld Excel Discussion (Misc queries) 2 October 2nd 08 10:45 AM
How do i set up a counter? Bulldog21 Excel Discussion (Misc queries) 2 July 23rd 08 02:12 PM
counter Haza Excel Discussion (Misc queries) 2 January 20th 06 08:30 PM
Counter Sdbenn90 Excel Discussion (Misc queries) 4 January 9th 06 11:43 AM
Counter Don Guillett[_4_] Excel Programming 0 July 17th 03 12:30 AM


All times are GMT +1. The time now is 03:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"