Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Is there anyway of inserting an auto number in a cell like you can in Access.
I have tried using the code below, but its doing something different to what I want. '/===============================/ Private Sub Worksheet_Activate() Range("A1").Value = Range("A1").Value + 1 End Sub '/===============================/ The spreadsheet I am working on requires the user to input helpdesk requests, and each request has a number which needs to be an autonumber. The same sort of thing when you add a record in access the autonumber gets inserted. Is there anyway that this can be done in Excel? Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Looks OK to me.
Tested and number in A1 increases when sheet is activated. What is it doing for you? Could be it is not the right code for your needs? Gord Dibben MS Excel MVP On Thu, 27 Jul 2006 10:35:28 +0100, ryadav wrote: Is there anyway of inserting an auto number in a cell like you can in Access. I have tried using the code below, but its doing something different to what I want. '/===============================/ Private Sub Worksheet_Activate() Range("A1").Value = Range("A1").Value + 1 End Sub '/===============================/ The spreadsheet I am working on requires the user to input helpdesk requests, and each request has a number which needs to be an autonumber. The same sort of thing when you add a record in access the autonumber gets inserted. Is there anyway that this can be done in Excel? Thanks +-------------------------------------------------------------------+ |Filename: Helpdesk_input form.zip | |Download: http://www.excelbanter.com/attachment.php?attachmentid=71| +-------------------------------------------------------------------+ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stop excel from dropping the 0 in the beginning of a number? | Setting up and Configuration of Excel | |||
Open Excel 2003 from Windows Explorer | Excel Discussion (Misc queries) | |||
Need suggestions for some uses of Ms Excel | Excel Discussion (Misc queries) | |||
Excel Range Value issue (Excel 97 Vs Excel 2003) | Excel Discussion (Misc queries) | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) |