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: 1
Default A loop to merge cells based on a value


I'm looking for a way to merge a group of cells in each row that doesn't
contain the value "Item" in Column A?. There are a variable number of
rows between row 17 and where a list of items actually begin.

Range("A17").Activate
if A17 < "Item" then merge cells E17:H17
Move down one row (A18)
if A18 < "Item" then merge cells E18:H18


I'm able to get all of columns E:H to merge, but I only want those
cells within the the current row being evaluated for the value "Item".
There is probably something very simple I am missing. Any help would be
great...thanks in advance.

Thanks again
Tammy


--
tschultz
------------------------------------------------------------------------
tschultz's Profile: http://www.excelforum.com/member.php...fo&userid=7877
View this thread: http://www.excelforum.com/showthread...hreadid=398710

 
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
Merge/consolidate text cells based on unique keys ? x13 New Users to Excel 3 June 3rd 11 07:14 PM
Loop based on number entered in userform Richhall[_2_] Excel Worksheet Functions 1 September 17th 09 03:58 PM
Advancing outer Loop Based on criteria of inner loop ExcelMonkey Excel Programming 1 August 15th 05 05:23 PM
vba/macro for loop-based summing? viveleroi0 Excel Programming 1 August 19th 04 12:23 AM
Function to loop through a column and return a value based on an x DoctorV[_2_] Excel Programming 0 July 8th 04 02:00 PM


All times are GMT +1. The time now is 08:13 AM.

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"