A Macro for creating semi-series

StevenData

New Member
Joined
Mar 23, 2002
Messages
10
Greetings,
I would like to thank you in advance for taking your time and reading this post.
Problem:
I am trying to write a macro in excel that generates a series, e.g. from 1 to 100 and attaches them to a fixed alphanumeric prefix with a dash separating the two, e.g. : (note: Fill does not do it)

N180-1
N180-2
N180-3

N180-100

I would then like to export these generated smi-series to a full page of labels in Microsoft word. Each label in that page gets one of the items generated by excel. e.g.:

each label looks like the following:

First label:
Number: N180-1
weight: 2KG
Description: …..

Second label:
Number: N180-1
weight: 2KG
Description: …..

etceteras…

I appreciate your feedback and comments on this. Thank you.
Sincerely,
Steve
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
You can do this with a simple formula...

In the first column put the values

1
2
3
4
etc...

Then in the second column put the equation

="N180-" & A2 <<<where the formula is in cell B" and the number list in column A. Then fill the two columns down, and copy the resulting list to values to remove the formulae.
 
Upvote 0
buggy thing cut half my reply off.

anyhow, put value 1 in cell a2, and in cell b2 put

="180N-" & A2

...then fill down and copy to values.
 
Upvote 0

Forum statistics

Threads
1,213,564
Messages
6,114,334
Members
448,567
Latest member
Kuldeep90

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