#1   Report Post  
Posted to microsoft.public.excel.programming
don don is offline
external usenet poster
 
Posts: 21
Default Macros

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

Thanks,

Don
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Macros

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" wrote in message
...
How do I create a macro that will type the word "Round"
in cells A1 thru A3000 one at a time?

Thanks,

Don



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Macros

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

On Fri, 11 Feb 2005 17:14:06 -0800, "Don"
wrote:

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

Thanks,

Don


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Macros

One of these days I'll get out of the habit of selecting first <bg


"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
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

On Fri, 11 Feb 2005 17:14:06 -0800, "Don"
wrote:

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

Thanks,

Don




  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Macros

It didn't work.

What else can I try?

Don

-----Original Message-----
One of these days I'll get out of the habit of selecting

first <bg


"Gord Dibben" <gorddibbATshawDOTca wrote in message
.. .
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

On Fri, 11 Feb 2005 17:14:06 -0800, "Don"
wrote:

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

Thanks,

Don




.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Macros

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
wrote in message
...
It didn't work.

What else can I try?

Don

-----Original Message-----
One of these days I'll get out of the habit of selecting

first <bg


"Gord Dibben" <gorddibbATshawDOTca wrote in message
. ..
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

On Fri, 11 Feb 2005 17:14:06 -0800, "Don"
wrote:

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

Thanks,

Don



.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Macros

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


Gord

On Fri, 11 Feb 2005 20:55:53 -0800,
wrote:

It didn't work.

What else can I try?

Don

-----Original Message-----
One of these days I'll get out of the habit of selecting

first <bg


"Gord Dibben" <gorddibbATshawDOTca wrote in message
. ..
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

On Fri, 11 Feb 2005 17:14:06 -0800, "Don"
wrote:

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

Thanks,

Don



.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM
convert lotus 123w macros to excel macros rpiescik Excel Programming 1 September 18th 04 01:35 PM
Open workbook-macros enabled, opening another with macros George J Excel Programming 5 September 17th 04 02:07 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM


All times are GMT +1. The time now is 06:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"