LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Programatically merge every other row?

David,

Sub TryNow()
Dim myRow As Long
Dim i As Integer
For myRow = 10 to 1000 Step 2
For i = 0 To 84
Cells(myRow, i * 3 + 1).Resize(1, 3).Merge
Next i
Next myRow
End Sub

HTH,
Bernie
MS Excel MVP

"David Bateman" wrote in message
...
Sub TryNow()
Dim i As Integer
For i = 0 To 84
Cells(10, i * 3 + 1).Resize(1, 3).Merge
Next i
End Sub

Sorry it appears that I have to merge every other row. Can this be done?




 
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
How to programatically control a 3D-sum? Ake Excel Worksheet Functions 6 February 2nd 06 09:20 AM
programatically merge cells? David Bateman Excel Programming 2 January 4th 05 05:32 PM
Set dropdown programatically Bura Tino Excel Programming 5 April 19th 04 11:04 PM
Programatically set ref to my DLL ricks Excel Programming 2 April 13th 04 03:08 PM
Altering UI Programatically Alan Greenwood Excel Programming 2 November 1st 03 05:43 PM


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