Macros

  • Thread starter Thread starter Don
  • Start date Start date
D

Don

How do I create a macro that will type the word "Round"
in cells A1 thru A3000 one at a time?

Thanks,

Don
 
If you need it one cell at a time

Sub test()

Range("A1:A3000").Select
For Each c In Selection
c.Value = "Round"
Next c
End Sub

But this faster:

Sub test()
Range("A1:A3000").Select
Selection.Value = "Round"
End Sub
 
Don

Sub round()
For Each cel In Range("a1:a3000")
cel.Value = "Round"
Next
End Sub

There has to more to this<g>

You can do the same thing manually.

Type A1:A3000 in the Name Box and ENTER

Type Round in A1 and hit CTRL + ENTER


Gord Dibben Excel MVP
 
Don

Everything you've seen so far should work in terms of the question you
asked. Did you get the word 'Round' written into every cell in the range? If
not what happened when you ran your macro?
What is the overall goal of your project? How does the prolem you wish to
solve assist you achieve your goal?

Steve
 
What is "it" and what happened(or didn't) when you ran the macro or took the
manual method?


Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top