Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel

Status
Not open for further replies.

RicksAtWork

Programmer
Joined
Nov 1, 2005
Messages
120
Location
GB
I have the following code:

Dim rng As Range
Set rng = Range("J6", "J88")

RoundRange (rng)


Where Roundrange is the following sub:



Private Sub RoundRange(rng As Range)

'currently does nothing

End Sub

I get an error on the line:

RoundRange (rng)

Even though there is no code in the sub!!!

What am I doing wrong?
 
I get an error
Any chance you could post the whole error message ?
What about this ?
Set rng = Range("J6:J88")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Take the parenthesis out or use the reserve word 'Call'.

RoundRange rng

or

Call RoundRange(rng)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top