Build Code to Expand Number Range in VBA

Status
Not open for further replies.

nabusafe

New Member
Joined
Sep 11, 2018
Messages
5
I have these set of zip code ranges in my excel sheet and I would like to build a code that expands these number ranges into new rows by the simple press of a macro and for it to recognize the numbers after the comma whether they are single numbers or a new range. Any help is appreciated. I also plan to add more ranges so it would need to be looped please.


9
2i9rnmf.png
[/IMG]
9
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,217,203
Messages
6,135,173
Members
449,914
Latest member
JSW

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top