View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
ShaneDevenshire ShaneDevenshire is offline
external usenet poster
 
Posts: 2,344
Default Autofill of single cells

Hi,

I think you need code like this:

Private Sub Workbook_Open()
Dim x As Long
x = Sheets("Sheet1").Range("A1")
Sheets("Sheet1").Range("A1") = x + 1
End Sub

--
Thanks,
Shane Devenshire


"Dannie" wrote:

I have a workbook that is read only and needs to have 1 cell autofilled in
with the next ascending number everytime we access the workbook.