Glasgowsmile
Active Member
- Joined
- Apr 14, 2018
- Messages
- 280
- Office Version
- 365
- Platform
- Windows
Good day,
I'm trying to set up a sheet so it will generate a unique ID for that entry in column P when new information is added to the A column. I've tried a couple of formulas but can't get anything to work correctly so I'm thinking it needs to be VBA but I'm not sure where to begin. Any help with this would be great, the only thing I've found that I think I need is the following:
I'm trying to set up a sheet so it will generate a unique ID for that entry in column P when new information is added to the A column. I've tried a couple of formulas but can't get anything to work correctly so I'm thinking it needs to be VBA but I'm not sure where to begin. Any help with this would be great, the only thing I've found that I think I need is the following:
VBA Code:
Dim maxNumber
maxNumber = Application.WorksheetFunction.max(Range("P:P"))
Target.Offset(0, -1) = maxNumber + 1