Valiant Collection points question...

Discuss the VALIANT comics, characters, and collecting.
PLEASE DO NOT REVEAL SPOILER INFORMATION IN YOUR TOPIC TITLE.

Moderators: Daniel Jackson, greg

User avatar
greg
The admin around here must be getting old and soft.
The admin around here must be getting old and soft.
Posts: 22887
Joined: Wed Feb 04, 2004 9:39 am
Valiant fan since: Rai #0
Favorite character: Depends on title
Favorite title: Depends on writer
Favorite writer: Depends on artist
Favorite artist: Depends on character
Location: Indoors
Contact:

Post by greg »

etos45 wrote:I don't know if I'm dumb or what, but this isn't seeming to work for me (oh... and really cool with the coding editor in excel). So, I pulled up the Alt-F11 Visual Basic editor. I clicked on Sheet 1. Then I pasted the code. Everything looked okay on that end, but when I went into excel and tried to call the function it gave me a name error. It's acting like the function isn't there, which makes me wonder if I forgot to do something in the VB editor to make it available?
When I was testing it, I did the cut-and-paste in the VB Editor below the code that was already present.
(Mine has some stuff about PDFs that I guess are add-ins from Adobe.)

If your computer doesn't already have code there, you should try to put "Option Explicit" on the first line.


___________________________

Option Explicit

Public Function GetPoints(x As Variant, y As Variant) As Double

Dim i As Integer

GetPoints = 0
i = 1

Do While (i <= x)
GetPoints = GetPoints + (CDbl(y) / i)
i = i + 1

Loop

End Function


________________________________


Come to think of it, just email me your .xls file and I'll take a look. :)

Greg

User avatar
siren3-4
The best feeling I get is filling holes
The best feeling I get is filling holes
Posts: 8912
Joined: Tue Jun 21, 2005 9:46 pm
Location: Florida

Post by siren3-4 »

I really think we should keep all posts here in english . . . :)

User avatar
Elveen
I sell comics, I collect Valiant.
I sell comics, I collect Valiant.
Posts: 25252
Joined: Sun Jun 11, 2006 2:44 am
Location: Educating the future of America, or something like that

Post by Elveen »

siren3-4 wrote:I really think we should keep all posts here in english . . . :)
Que?

User avatar
cjv
A Valiant Vision-ary
A Valiant Vision-ary
Posts: 4344
Joined: Thu Feb 05, 2004 7:31 am
Valiant fan since: Shadowman #1
Favorite character: Armstrong
Favorite title: Shadowman (VH1)
Location: Rio Grande Valley

Post by cjv »

I have a question about collector points - can I sell mine on Ebay?

Chris

User avatar
siren3-4
The best feeling I get is filling holes
The best feeling I get is filling holes
Posts: 8912
Joined: Tue Jun 21, 2005 9:46 pm
Location: Florida

Post by siren3-4 »

Elveen wrote:
siren3-4 wrote:I really think we should keep all posts here in english . . . :)
Que?

:P

User avatar
siren3-4
The best feeling I get is filling holes
The best feeling I get is filling holes
Posts: 8912
Joined: Tue Jun 21, 2005 9:46 pm
Location: Florida

Post by siren3-4 »

cjv wrote:I have a question about collector points - can I sell mine on Ebay?

Chris
That's way out of line . . .you should sell them to board members here first . . .

User avatar
Elveen
I sell comics, I collect Valiant.
I sell comics, I collect Valiant.
Posts: 25252
Joined: Sun Jun 11, 2006 2:44 am
Location: Educating the future of America, or something like that

Post by Elveen »

siren3-4 wrote:
cjv wrote:I have a question about collector points - can I sell mine on Ebay?

Chris
That's way out of line . . .you should sell them to board members here first . . .

do they still have the COAs? I'll take #51. :thumb:


Post Reply