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: 12
Default Adding formulas to rows using a Loop Macro

I am trying to write a macro that will do the following as long as there is
data in column A.

Range("F4").Select
ActiveCell.FormulaR1C1 _
= "=IF(LEN(R4C1)<LEN(R4C5),
CONCATENATE(R4C1,R4C5),CONCATENATE(R1C5,R1C1))"
With Selection.Interior
.ColorIndex = 38
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
Selection.Locked = True
End With

How do I write a Loop that will keep doing this on each successive row until
the cell in column A is blank?

 
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
Adding formulas after rows tnederlof Excel Discussion (Misc queries) 5 February 5th 07 05:10 AM
Adding formulas after rows tnederlof Excel Discussion (Misc queries) 1 February 4th 07 08:11 PM
Adding rows in between formulas Mary Excel Worksheet Functions 0 June 21st 06 05:50 PM
Adding and deleting rows with formulas ****Need Help**** [email protected] Excel Discussion (Misc queries) 5 May 31st 06 05:42 PM
adding new rows and keeping same formulas [email protected] Excel Discussion (Misc queries) 3 March 7th 06 07:28 PM


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