![]() |
paper: New Scouting Database from Team 2834
Thread created automatically to discuss a document in CD-Media.
New Scouting Database from Team 2834 by Ed Law |
Re: paper: New Scouting Database from Team 2834
I try to upload the Scouting Database but it says my file is too big. I will try to reduce the size but I will have to delete some of the data.
|
Re: paper: New Scouting Database from Team 2834
I split the database into two Excel file. You can stitch it back together if you want or just use part 1 without part 2.
|
Re: paper: New Scouting Database from Team 2834
Quote:
|
Re: paper: New Scouting Database from Team 2834
Quote:
|
Re: paper: New Scouting Database from Team 2834
Quote:
|
Re: paper: New Scouting Database from Team 2834
Very nice database of OPR and CCWM.
Got a few suggestions that might improve your excel file. In order to make the getpicture sub to work every time a new query is requested, change your getpicture sub to the following functions: Code:
Function getpicture(teamnum As String) As BooleanCode:
=getpicture(B2)Hope that helps and Thanks for the information. -Oris- |
Re: paper: New Scouting Database from Team 2834
Quote:
Wow, thanks for the code. I spent a little bit of time but couldn't figure out how to do it yet. I will try it out this weekend and repost the database. Does anybody know why I can not delete the two files that I don't need any more now that I am zipping the file to make it smaller? Ed |
Re: paper: New Scouting Database from Team 2834
Forgot one thing about protecting the worksheet, you will also have to check the "Edit Objects" box (scroll down 2nd from the bottom). This will allow for the "I8" robot picture to update correctly.
Look forward to seeing the new version. -Oris- |
Re: paper: New Scouting Database from Team 2834
Quote:
It is working now. Thank you. The picture automatically changes when the user type in a new team number in cell B2. One thing I have to change to get it to work is teamnum as Integer instead of teamnum as String. The picture is okay if the aspect ratio is 4:3 but it get distorted if it is not. How can I maintain the aspect ratio? I tried to do it but was not successful. Can you take a look at the program and see what I did wrong? I have decided not to protect the worksheet for now since I am still developing it. Ed |
Re: paper: New Scouting Database from Team 2834
After:
Code:
Set P = ActiveSheet.Shapes.AddPicture(filen, True, True, AC.Left + 2.5, AC.Top + 2.5, 329, 250)Code:
P.ScaleHeight 1, True-Oris- |
Re: paper: New Scouting Database from Team 2834
Quote:
I tried it and it worked. However when I tried it on Excel 2007, I think it changes it back to its original size and then stretch it to Height = 250 without maintaining the aspect ratio. I tried a few things but none seems to work. Can anybody help? I would like to make this work for everybody as more and more people will be using Excel 2007. Thanks. Ed |
Re: paper: New Scouting Database from Team 2834
Quote:
Code:
P.ScaleHeight 1, TrueCode:
P.LockAspectRatio = msoTrue-Oris- |
Re: paper: New Scouting Database from Team 2834
This spreadsheet is working in Excel 2007 now. The change that Oris suggested works. It is now version 4. I still can not delete the old versions.
I will be posting the 2009 Scouting Database during X'mas break so we can see easily which teams are going to which regionals. Ed |
Re: paper: New Scouting Database from Team 2834
I got another one for you Ed to fix your opening issues.
Replace: Code:
filen = CurDir + "\" + Format(teamnum) + ".jpg"Code:
Dim sCurDir As StringHope this helps, -Oris- |
| All times are GMT -5. The time now is 23:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi