how do i declare a global variable in VBA

Posted by Nimrod on Stack Overflow See other posts from Stack Overflow or by Nimrod
Published on 2010-04-27T14:41:08Z Indexed on 2010/04/27 14:43 UTC
Read the original article Hit count: 244

Filed under:

I wrote the following section:

Function find_results_idle()

Public iRaw As Integer
Public iColumn As Integer
iRaw = 1
iColumn = 1

and i get the error messege: "invalid attribute in Sub or Function"

do you know what i did wrong?

i tried instead of "Public" to use "Global" but got the same problem. I tird to declare the function itself as "Public" but no good... what do i do wrong?

thanks.

© Stack Overflow or respective owner

Related posts about excel-vba