![]() |
|
Off Topic Lounge Discuss anything you want here folks. A place for computer junkies to boldly post Off Topic... Rant and rave if it is necessary, but just try to keep it clean! |
![]() |
|
Thread Tools | Display Modes |
![]() |
#1 | Advertisement (Guests Only)
Login or Register to remove this ad
|
Radeon R200
Join Date: Nov 2007
Location:
![]()
Posts: 61
![]() ![]() |
![]() No need to bother pasting my code or what I need help with unless I know someone is familiar with both VBA and Excel. I hope someone is familiar though! Thanks! Keith |
|
![]() |
![]() |
![]() |
#2 |
Radeon R200
Join Date: Nov 2007
Location:
![]()
Posts: 61
![]() ![]() |
![]() BUMP! People in here talk a lot! |
![]() |
![]() |
![]() |
#4 |
Radeon R200
Join Date: Nov 2007
Location:
![]()
Posts: 61
![]() ![]() |
![]() Not quite sure I understand what you are hinting at? Can you help? |
![]() |
![]() |
![]() |
#5 |
Custom User Title
Join Date: Jun 2004
Location:
![]()
Posts: 5,005
![]() ![]() |
![]() He's saying don't be so damn nervous ![]() Would help if you would tell what ya need anyway?
__________________
Don't panic
|
![]() |
![]() |
![]() |
#6 |
Deposed King of Rage3D
Join Date: Oct 2003
Posts: 49,000
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() either that or post it in our popular programmers section |
![]() |
![]() |
![]() |
#7 |
Radeon R200
Join Date: Nov 2007
Location:
![]()
Posts: 61
![]() ![]() |
![]() I'm not scary.... I have just come in contact with only 1 or 2 people who are familiar with VBA and Excel well enough to offer some insight... Basically the code is this: Public Function FGs(ByVal MyNum As String) As String Dim ScoresFG As String Dim x As Variant Dim i As Long ScoresFG = MyNum x = Split(ScoresFG, "-", -1) For i = 0 To UBound(x) Debug.Print x(i) Next i End Function Right now, I am just looking for it to take a string of values from one cell formatted as 40-61-33 (test values) and display the string as different values into another cell... All I keep getting is a blank cell as the result. My goal eventually is to have this split the values into the array like above, compare them to an IF statement (posted below) and tally up all the values. I made a fantasy football stat tracker in Excel to get out of paying for one... I think it's ridiculous to pay for something I can make. If MyNum <= 39 Then FGs = 3 ElseIf MyNum > 49 Then FGs = 5 Else FGs = 4 End If |
![]() |
![]() |
![]() |
#8 |
Posts: n/a
![]() |
![]() I know a good bit of code but to be honest the best place I have found for such help is www.ozgrid.com and www.excelforum.com Be prepared at ozgrid as it is a HUGE forum and the mods are really tight ship, unlike anywhere I have ever seen. They do however strive to answer quick and precise. |
![]() |
![]() |
#9 |
Radeon R420
Join Date: Sep 2007
Posts: 230
![]() ![]() |
![]() Haven't dealing with excel+vba for quite some time since switching to OpenOffice. But you could try this: Code:
Public Function FGs(ByVal MyNum As String) As Long Dim x As Variant Dim i As Long Dim score As Long x = Split(MyNum, "-", -1) For i = 0 To UBound(x) score = CInt(x(i)) If score <= 39 Then FGs = FGs + 3 ElseIf score > 49 Then FGs = FGs + 5 Else FGs = FGs + 4 End If Next i End Function Last edited by madyasiwi : Jul 30, 2008 at 11:04 PM. |
![]() |
![]() |
![]() |
#10 |
Cute
Join Date: Jul 2003
Location:
![]()
Posts: 14,429
![]() ![]() ![]() ![]() ![]() ![]() |
![]() i did a bit of coding in vb for excel about 2 years ago, but haven't done anything since, and i'm a bit drunk at the moment so i'll have a look at it later if you are still having issues. remember, there are quite a few examples that come with excel that you can have a look at. |
![]() |
![]() |
![]() |
#11 |
Radeon R200
Join Date: Nov 2007
Location:
![]()
Posts: 61
![]() ![]() |
![]() Thanks to all that I replied.. I actually with the help of someone on IRC came up with the solution and it works exactly the way I wanted. Thank you all though! |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
anyone familiar with this, m audio co2? | warmonger180 | Home Theaters and Photography | 3 | May 3, 2011 05:40 AM |
Anyone familiar with Melbourne, FL? | NEODARK | Off Topic Lounge | 12 | Jun 24, 2010 03:42 PM |
anyone familiar with agoraphobia? | night | Off Topic Lounge | 15 | Dec 8, 2004 09:58 AM |
Anyone familiar with M-Net ? | Soulkrusha | Programmers Discussion Forum | 1 | Apr 17, 2004 03:09 PM |
ASUS Q-Fan. Anyone familiar ? | dovshuman | General Hardware | 2 | Sep 16, 2003 11:55 AM |