LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Macro does not populate later rows

I have create a macro and when I go to the next cell and try to run the
Macro, it puts data in the first cell, but then goes to me original line of
data - it does not populate the rest of the 2nd row.

When I look at the macro, it seems to reference a specific cell. I need some
help.

Thanks,

Here is the macro:

ActiveCell.FormulaR1C1 = "=MID(RC[-2],3,14)"
Range("D3").Select
ActiveCell.FormulaR1C1 = "=MID(RC[-3],17,12)"
Range("E3").Select
ActiveCell.FormulaR1C1 = "=MID(RC[-4],29,10)"
Range("F3").Select
ActiveCell.FormulaR1C1 = "=MID(RC[-5],46,6)"
Range("G3").Select
ActiveCell.FormulaR1C1 = "=MID(RC[-6],52,4)"
Range("I3").Select
ActiveCell.FormulaR1C1 = "=RIGHT(RC[-6],5)"
Range("J3").Select
ActiveCell.FormulaR1C1 = "=+RC[-6]"
Range("K3").Select
ActiveCell.FormulaR1C1 = "=RC[-6]*1"
Range("L3").Select
ActiveCell.FormulaR1C1 = "=RC[-6]"
Range("M3").Select
ActiveCell.FormulaR1C1 = _

"=IF(RC[-6]=""1000"",""LA"",IF(RC[-6]=""2000"",""Mex"",IF(RC[-6]=""3000"",""Brz"",IF(RC[-6]=""4000"",""Arg"",IF(RC[-6]=""5000"",""Boom"",IF(RC[-6]=""5600"",""Cartoon LA""))))))"
Range("N3").Select
ActiveCell.FormulaR1C1 = _

"=IF(RC[-1]=""Arg"",(RC[-1]*Rate!R3C2),IF(RC[-1]=""Brz"",(RC[-3]*Rate!R4C2),IF(RC[-1]=""Mex"",(RC[-1]*Rate!R5C2),RC[-3])))"
Range("O3").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-2]=""Arg"",
""ARS"",IF(RC[-2]=""Brz"",""BRL"",IF(RC[-2]=""Mex"", ""MXN"",""USD"")))"
Range("C3:O3").Select
Range("O3").Activate
Selection.Copy
End Sub
 
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
Macro to populate data (repeating rows) uncreative Excel Discussion (Misc queries) 1 April 28th 08 07:45 PM
Populate Data In Rows EK Excel Discussion (Misc queries) 9 October 25th 07 07:42 AM
Populate Rows from worksheet Names. Trever B Excel Discussion (Misc queries) 2 May 15th 06 05:08 AM
Macro to add rows and populate cells Scott Wagner Excel Programming 0 December 28th 05 07:40 PM
Macro to add rows and populate cells based on critera Scott Wagner Excel Programming 0 December 23rd 05 03:57 PM


All times are GMT +1. The time now is 01:36 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"