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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Excel Cell Properties from Excel

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
I have an ASP page which opens an Excel file in the background. I want to read information from a number of cells and display them as headings in my ASP page. However, in the Excel document there are a number of merged cells which are merged across columns and rows.

So I basically want to be able to check the equivalent "rowspan" and "colspan" properties of the excel cells and mirror that in my ASP page.

Are there such properties that I can read from the Excel file.

Mighty
 



Hi,

VBA questions are best addressed in forum707.

But regarding this question, check out the MergeArea property...
Code:
With YourCell.MergeArea
  msgbox "column span is " & .columns.count
  msgbox "row span is " & .rows.count
end with


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hi Skip,

Thanks for the solution and the pointer to the VBA forum.

Nick

Mighty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top