Vb.Net change Excel row height

Posted on 2006-05-06
Last Modified: 2008-02-01
How do I change the height of a row in excel using
Question by:noobe1
    LVL 46

    Accepted Solution

    Hi noobe1.

    Could you give us more information?  Do you need to know how to manipulate Excel from VB.Net, or do you just need to know how to adjust the row height? If the latter, you can use something like this....

        Dim XL As New Excel.Application
        Dim XLwb As Excel.Workbook = XL.Workbooks.Open("C:\Path\Workbook.xls")
        Dim WLws As Excel.Worksheet = XLwb.Worksheets("Sheet1")

        XLws.Rows("8:8").RowHeight = 52



    Author Comment

    Exactly what I'm looking for. Thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now