Hi All,
I have messed about with this for hours with zero progress so I'm going to open this up to the room in hopes somebody can be a lifesaver. I've taken on a project of updating IP ranges. I have close to about 2 million of these to work through and our system has generated the IP's in a format I can't use, nor can I have this amended.
As an example, the data has come through as the below.
193.49.125.33-46
195.220.131-133.0-24
89.83.109.192
91.212.128.130
195.85.247.1-254
This sadly isn't much use to me because of the way our system takes it in would be like this
193.49.125.33 - 193.49.125.46
195.220.131.0 - 195.220.133.24
89.83.109.192
91.212.128.130
195.85.247.1 - 195.85.247.254
To clarify each hyphen in the example IP ranges means "to." So with the second example, there were 2 separate hyphens for the range in the third and fourth block of numbers. There always needs to be a space, hyphen, space between the ranges for our horrible outdated system to accept them.
Hoping somebody can help point me in the right direction with a bit of VBA or let me know if more information is required.
Thanks for your help,
Rashie.
I have messed about with this for hours with zero progress so I'm going to open this up to the room in hopes somebody can be a lifesaver. I've taken on a project of updating IP ranges. I have close to about 2 million of these to work through and our system has generated the IP's in a format I can't use, nor can I have this amended.
As an example, the data has come through as the below.
193.49.125.33-46
195.220.131-133.0-24
89.83.109.192
91.212.128.130
195.85.247.1-254
This sadly isn't much use to me because of the way our system takes it in would be like this
193.49.125.33 - 193.49.125.46
195.220.131.0 - 195.220.133.24
89.83.109.192
91.212.128.130
195.85.247.1 - 195.85.247.254
To clarify each hyphen in the example IP ranges means "to." So with the second example, there were 2 separate hyphens for the range in the third and fourth block of numbers. There always needs to be a space, hyphen, space between the ranges for our horrible outdated system to accept them.
Hoping somebody can help point me in the right direction with a bit of VBA or let me know if more information is required.
Thanks for your help,
Rashie.
Last edited: