Declamatory
Active Member
- Joined
- Nov 6, 2014
- Messages
- 319
Hi Folks,
The company I work receives a daily file with a list of share trades. I use VBA to convert it to a file I can import to our operating system.
Each trade has a unique deal reference number (Column M) apart from when there is a transfer of shares between two clients. In that scenario both clients has a row in the spreadsheet for their side of the transfer but both rows have the same deal reference number.
The system we import to isn't fussy about what the reference number is but doesn't like duplicate reference numbers. I can manually change the duplicate number using the RAND function but I want to make the process for other users as easy as possible.
Is there a way as part of my VBA code I can replace any duplicate reference numbers in column M with a random number?
Thank you.
Declamatory
The company I work receives a daily file with a list of share trades. I use VBA to convert it to a file I can import to our operating system.
Each trade has a unique deal reference number (Column M) apart from when there is a transfer of shares between two clients. In that scenario both clients has a row in the spreadsheet for their side of the transfer but both rows have the same deal reference number.
The system we import to isn't fussy about what the reference number is but doesn't like duplicate reference numbers. I can manually change the duplicate number using the RAND function but I want to make the process for other users as easy as possible.
Is there a way as part of my VBA code I can replace any duplicate reference numbers in column M with a random number?
Thank you.
Declamatory