Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do I create a macro that will type the word "Round"
in cells A1 thru A3000 one at a time? Thanks, Don |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
weird saving of a document with macros resulting with macros being transfered to the copy | Excel Programming | |||
convert lotus 123w macros to excel macros | Excel Programming | |||
Open workbook-macros enabled, opening another with macros | Excel Programming | |||
Macro Size Limit / open macros with macros? | Excel Programming | |||
Macros not appearing in the Tools Macro Macros list | Excel Programming |