1. are you using Option Explicit???

2. when posting here, please try and be VERY explicit. I have no idea whatsoever what your X is. Did you declare it? If so, what did you declare it as?

3. when mentioning error messages you get, ALWAYS give us what that error message actually states.

4. it helps to actually post code. You can't yet, as I think it is still a minimum of 5 posts before you can. So post a few more, then post your actual code.

The input variable for Round can be any expression that can be evaluated as a number. It does not require a Long. You say: "It looks like it wants me to define the variable as "Long""

But how can I know that is correct if you do not state the actual error message? I have been playing around, trying to get some error message that implies that...but have not yet.