|
-
Jan 23rd, 2005, 02:00 PM
#1
Thread Starter
Addicted Member
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.
-
Jan 23rd, 2005, 02:03 PM
#2
The picture isn't missing
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  .
-
Jan 23rd, 2005, 02:23 PM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|