+ Reply to Thread
Results 1 to 7 of 7

Macros

  1. #1
    Don
    Guest

    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. #2
    Steve
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > How do I create a macro that will type the word "Round"
    > in cells A1 thru A3000 one at a time?
    >
    > Thanks,
    >
    > Don




  3. #3
    Gord Dibben
    Guest

    Re: 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"
    <[email protected]> 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. #4
    Steve
    Guest

    Re: Macros

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


    "Gord Dibben" <gorddibbATshawDOTca> wrote in message
    news:[email protected]...
    > 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"
    > <[email protected]> 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. #5
    Guest

    Re: 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
    >news:[email protected]...
    >> 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"
    >> <[email protected]> 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. #6
    Steve
    Guest

    Re: 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
    <[email protected]> wrote in message
    news:[email protected]...
    > 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
    >>news:[email protected]...
    >>> 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"
    >>> <[email protected]> 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. #7
    Gord Dibben
    Guest

    Re: 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, <[email protected]>
    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
    >>news:[email protected]...
    >>> 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"
    >>> <[email protected]> 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1