Re: Excel Macro Code Help



Thanks, but how do I get it to repeat through each row that has a value in
the column?

"Castell" wrote:

You could also use ActiveCell.Offset(1,0).Select in place of each of the
Range("99").Select commands.


"Jeanne A" <JeanneA@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F7CCA02A-FA90-4456-8E7B-6AA4199E96D0@xxxxxxxxxxxxxxxx
I'm trying to write a macro to select a cell, move to the end of the cell,
press enter, and move to the next cell in that row & then repeat for all
rows
in that column. Here's what I have so far.

Range("A2").Select
ActiveCell.FormulaR1C1 = "07-30365"
Range("A3").Select
ActiveCell.FormulaR1C1 = "07-40281"
Range("A4").Select
ActiveCell.FormulaR1C1 = "1272-00-02"
Range("A5").Select
ActiveCell.FormulaR1C1 = "1272-00-03"
Range("A6").Select
ActiveCell.FormulaR1C1 = "1272-00-04"
Range("A7").Select
ActiveCell.FormulaR1C1 = "1272-00-05"
Range("A8").Select
End Sub

.



Relevant Pages

  • Re: OT - trivial programming language
    ... |> If you have more than one level, then you need to hit>> more often. ... | As I said, meaningful problem. ... not the number of times to repeat. ... it is different from all other commands) Nonetheless, ...
    (Debian-User)
  • Re: How can I add the REPEAT (not Redo) command to Excels toolbar?
    ... What I need is a method to add the REPEAT _command_ to the toolbar. ... If it's the "button" image you want, r-click the Toolbar area, Customize, Commands, Rearrange commands, set Menu Bar to "Edit", Select ... Notice that Repeat operation is available with the format operation activated. ...
    (microsoft.public.excel.misc)
  • Re: How can I add the REPEAT (not Redo) command to Excels toolbar?
    ... If it's the "button" image you want, r-click the Toolbar area, ... Customize, Commands, Rearrange commands, set Menu Bar to "Edit", Select ... I don't think there is a Repeat icon. ... Mark a cell and apply a format. ...
    (microsoft.public.excel.misc)
  • Re: How can I add the REPEAT (not Redo) command to Excels toolbar?
    ... I mean that the F4 button acts as a repeat button....at least on my ... Have you tried simply hitting the F4 button on your keyboard? ... If it's the "button" image you want, r-click the Toolbar area, ... Customize, Commands, Rearrange commands, set Menu Bar to "Edit", Select ...
    (microsoft.public.excel.misc)
  • Re: How can I get all folders to show date modified?
    ... If you can please repeat any commands you want me to do. ... essentially a very simple and very basic task, ... discuss a more direct method of assistance. ...
    (microsoft.public.windowsxp.general)