Advertisement

11.19.2007 at 05:47AM PST, ID: 22970022
[x]
Attachment Details

Send Info to Excel with Option Strict On

Asked by chlade in Microsoft Visual Basic.Net

Tags: excel

I have an application that sends information to Excel.  It works fine if I have Option Strict Off.  However, I am required to turn Option Strict On.  When I do, I get "late binding" errors.  How can I clear up statements such as these?  (All give the late-binding error.)

    oSheet.Rows("2:2").Select()
    oSheet.Rows("1").EntireRow.Font.Underline = True
    oSheet.Columns(1).EntireColumn.Style = "Comma"
    oSheet.Columns(1).EntireColumn.NumberFormat = "mm/dd/yyyy"
    oSheet.Columns(1).EntireColumn.HorizontalAlignment = Excel.Constants.xlLeft

Thanks,
ChrisStart Free Trial
[+][-]11.19.2007 at 10:34AM PST, ID: 20314267

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: excel
Sign Up Now!
Solution Provided By: ptakja
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.19.2007 at 10:34AM PST, ID: 20314270

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.19.2007 at 05:15PM PST, ID: 20316989

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628