excel spreadsheet macro

I need help with trying to automate columns of a spreadsheet. For example I am needing to name each row that has existing data. On some excel documents I need to number automatically to 30 and on others I only need to name 10 and on others maybe 20, Here is an example


job1
job2
job3
job4
job5
job6
job1
job2
job3
job4
job5
job6
 
I would like to be able to select each row and have this automated

job1
job2
job3
job4
job1
job2
job3
job4
job1
job2
job3
job4

Over and over again until the last row with data. I appreciate any type of help thanks
techdriveAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

[ fanpages ]IT Services ConsultantCommented:
Sorry, I need some clarification.

I see that your first example has two sets of six repeated "names" ("job1" to "job6"; twice).  Presumably 12 rows of data.
I can also see that your second example has three sets of four repeated "names" ("job1" to "job4"; three times).

How are the number of repetitions to be specified?  That is, how are you going to indicate which worksheets ("excel documents" using your terminology above) automatically number to 10, to 20, or to 30?

In the first example, did you select rows 1 to 6, & in the second; 1 to 4?

Also, is the column where the repeated automated "names" generation going to be column [ A ]?
Where does the other data exist in the same worksheet to indicate the extent of the automatic generation of "names"?  Is this column [ B ], or to the "last used" row (regardless of column)?

Finally, if the selection (of six, or of four, in your two examples) does not divide equally into the number of available rows (10, 20, or 30), should the last 'set' simply stop mid-flow of automated "names"?

Thank you for your further expansion on your requirements.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
techdriveAuthor Commented:
sorry I took so long to answer I found the answer I was looking for.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.