Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Automatically increasing a number by 1

Dave

Private Sub Workbook_Open()
With Sheets("Sheet1").Range("A1")
..Value = .Value + 1
End With
End Sub

Adjust sheet and range to suit.

Right-click on the Excel Icon left of "File" on the menubar.

Select "View Code".

Paste the above into that module.


Gord Dibben MS Excel MVP

On Wed, 23 Aug 2006 13:58:02 -0700, Dave wrote:

How can I get a number in a cell to automatically in crease by 1 when the
workbook is opened?

THanks


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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
How to automatically number a new document(Invoice) when opening Gilly Excel Discussion (Misc queries) 1 September 13th 05 03:46 PM
How to automatically number a new document(Invoice) when opening Gilly Excel Discussion (Misc queries) 0 September 13th 05 02:45 PM
How to make Cells automatically become 'highlighted' when number . Kate Excel Worksheet Functions 2 November 25th 04 12:59 AM
How to make Cells automatically become 'highlighted' when number . Kateskyline Excel Worksheet Functions 1 November 24th 04 09:27 PM


All times are GMT +1. The time now is 12:29 AM.

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

About Us

"It's about Microsoft Excel"