|
-
Feb 23rd, 2000, 06:01 AM
#1
I have this Excel program that has a huge table of values that are based on user input and engineering formulas. Does anyone know how I can convert this table into VB or how I can have VB use these values? I think the main problem with this is the fact that these numbers in the table change every time the user inputs something into the program. Anyway, I basically need all of this Excel program in the VB environment so that other people can't see the code like they can in Excel. Please help if you can 
Thanks, Melissa
-
Feb 23rd, 2000, 06:57 AM
#2
Hyperactive Member
Depending on the size of the file, you might want to use arrays to pick up the Excel information.
Set your Excel object references in the VB project, then start at a given cell to pick up the arrays. I use loops to pick up the information. Once it is in the array, you need to know where to find it in the array.
Another option would be to pick up the array and convert it to an Access table - then you could manipulate it with SQL.
-
Feb 23rd, 2000, 01:17 PM
#3
Fanatic Member
Don't switch to VB from Excel just yet.
Hi Melissa,
If your main problem is preventing users from seeing the Excel VBA code, you can password protect the modules. Here's how you do it:
In the Excel VBA Editor Window, select Tools...VBAProject Properties. Then Click on the Protection Tab. Put a check by "Lock project for viewing" and type in a password. Click OK.
Now your VB-Excel Code is password protected! In order to test if it worked, save and close the workbook, open it back and try to look at the Code.
Hopefully, this will save you from having to try to read the Excel data into VB.
All the best.
-
Feb 23rd, 2000, 10:55 PM
#4
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
|