LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default C#NET2008 Excel Merge Cell Problem

Dave Peterson has brought this to us :
First, I don't speak C#.net.

But in VBA, I'd use something like:

objWrkSheet.Cells(intRow, 1).resize(1,5).mergecells = true

So maybe...

//--- merge cells into one ---
objWrkSheet.Cells[intRow, 1].resize(1,5).mergecells = true;


Even better! It's how I'd do it in VB/VBA, but not very informative to
a novice as to what's happening. I was hoping my reply provided some
educating content about how to manipulate the Range object (without
getting too carried away with it)!

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
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 Data problem from Excel to Word AndyC812 Excel Discussion (Misc queries) 2 June 12th 08 02:43 AM
Merge Cell Problem Jetrascal New Users to Excel 4 January 8th 08 09:15 AM
Open a mail merge from excel: common problem lightspeed Excel Programming 0 July 21st 06 02:09 PM
Open a mail merge from excel: common problem lightspeed Excel Programming 0 July 21st 06 02:03 PM
Excel/Word Mail Merge Problem AA[_2_] Excel Programming 0 September 19th 03 03:53 PM


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