Excel

R

Rowan

Add the following code to the ThisWorkbook code sheet in the Visual Basic
Editor.

Private Sub Workbook_Open()
Dim targetCell As Range
Set targetCell = Sheets("Sheet1").Range("A2") 'change to required cell
targetCell.Value = targetCell.Value + 1
End Sub

Regards
Rowan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top