Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm writing that app in VB.net that goes into an excel file row by row and
extracts the information and stuffs it into an array for comparison later. Problem is, I'm having trouble testing for merged cells (I can only catch them in an error at the moment), and I can't seem to extract data from merged cells. Let me give some context to this. Lets say I have a group of data I want to extract from a worksheet 7 cols wide and X rows long. Every X (random) number of rows, there's a row of merged cells (e.g. f1:f7) as a header to seperate groups of data. How do I deal with these rows of merged cells when creating a range? TIA! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Joe,
You'll probably get a better answer soon about getting the data, but this is a start: Sub test() If Selection.MergeCells = True Then MsgBox Selection.Cells(1).Value End If End Sub hth, Doug Glancy "Joe Kickass" wrote in message ... I'm writing that app in VB.net that goes into an excel file row by row and extracts the information and stuffs it into an array for comparison later. Problem is, I'm having trouble testing for merged cells (I can only catch them in an error at the moment), and I can't seem to extract data from merged cells. Let me give some context to this. Lets say I have a group of data I want to extract from a worksheet 7 cols wide and X rows long. Every X (random) number of rows, there's a row of merged cells (e.g. f1:f7) as a header to seperate groups of data. How do I deal with these rows of merged cells when creating a range? TIA! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy paste non merged to merged cells | Excel Worksheet Functions | |||
How can I sort an Excel Doc containing merged & non-merged cells? | Excel Discussion (Misc queries) | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
how do i link merged cells to a merged cell in another worksheet. | Excel Worksheet Functions | |||
Sorting merged cellsHow do I sort merged cells not identically siz | Excel Worksheet Functions |