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: 557
Default MERGE CELL BY MACRO

Hi, I have this macro (please see below) which insert lines . What
should
I add in this macro that it should merge cells from coloumn "I" to
coloumn
"N" in those inserted rows.
MACRO:-
Sub InsertIt()
* * Dim LastRow As Long
* * Dim StartRow As Long

* * StartRow = ActiveCell.Row

* * Cells(StartRow + 1, 1).Resize(6, 1).EntireRow.Insert

* * LastRow = Cells(Rows.Count, 1).End(xlUp).Row

* * Application.ScreenUpdating = False
* * With Range(Cells(StartRow, 1), Cells(LastRow, 1))
* * * * .DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
* * * * * * Step:=1, Trend:=False
* * End With
* * Application.ScreenUpdating = True

End Sub

I posted smilar question before please see the link below for more
understanding
about question. Thanks

http://groups.google.com/group/micro...95cb9ab9e89f5b
 
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 /Update Macro Ananth Excel Discussion (Misc queries) 7 July 21st 09 10:04 PM
Merge Macro jlclyde Excel Discussion (Misc queries) 4 January 11th 08 03:43 PM
Excel - Slight edit of the macro below should do the trick! Add filename to cell A1 upon merge. Stuart[_3_] Excel Programming 1 October 31st 06 09:28 PM
macro to merge cell nshanmugaraj[_7_] Excel Programming 2 March 4th 06 07:30 AM
Macro to Merge and Sum Rows MrGPeter Excel Programming 2 September 15th 05 09:35 AM


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