Results 1 to 3 of 3

Thread: Compiling a VB project

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Posts
    138

    Compiling a VB project

    Hello all!

    I have this small VB project that uses Excel (Office 2003) commands but I have Office 2002 on my pc. Obviously I get error when compiling because I use methods not recognized by Excel 2002.

    Is there any way I can force the execute to be created? Any other way around this?

    TIA

    p.s. don't flame me I did a search but haven't found anything specific to my prblm.

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217

    Re: Compiling a VB project

    You can't force it, because it wouldn't work if you did. You have to add some references to access Excel from a VB app. Post your code.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Posts
    138

    Re: Compiling a VB project

    Thanks for your prompt reply.

    Here's the portion of my code that's bugging:

    With theBook.Worksheets(1)
    .ListObjects.Add(xlSrcRange, Range(.Cells(7, 1), .Cells(NoOfLine + 7, 11)), , xlYes).Name = "List1"
    End with

    It's obvioulsy an Excel 2003 command.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width