Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merging Cells in Excel from VB

Status
Not open for further replies.

ToeJamNEarl

Programmer
Jan 26, 2004
91
US
Hey guys,

I was wondering if it was at all possible to merge cells from Visual basic to an excel file? I know how to create an Excel object/book/sheet and manitpulate data into rows and columns, but was wondering if it was possible to merge cells, so that I can create a function that sets up a template for data manipulation.

Thanks.

-Diran
 
Diran,

You define a range and use the Merge method
Code:
  xlRange.Merge
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top