Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]()
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 "moggy" wrote: i want to increase a field by 1 every time a specific file is opened |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
html to excel | Excel Discussion (Misc queries) | |||
Excel error - Startup (and Acrobat PDFMaker) | Setting up and Configuration of Excel | |||
Merge from Excel to Excel | Excel Discussion (Misc queries) | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) | |||
Shortcut file fails to open | Excel Discussion (Misc queries) |