Hi,
I'm trying to round a decimal(18,2) to the nearest whole number (<=.49 should round down, >=.50 should round up).
I've tried casting as decimal(18,0) but this rounds 1.50 up and 2.50 down (odd numbers round up, even numbers round down).
casting as integer just truncates the last 2...
Hi
In my code before even the Dim for a b c etc
I have
Range("AA2:AA58").Select
Selection.Replace What:="", Replacement:="-123", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
The -123 is just a value that I know will never exist
and the format of the cells is a...
Hi I got an invalid type error ?
And the the ".Sql = Array( _ ...." was highlighted in yellow. Not knowing anything I just guessed it was because the array was too long ?
I have changed the code to be (again guessing with hit and misses!)
Dim a As Variant
etc for all values
a =...
Hi
I am sorry , this may be a very stupid question , but I have no VBA knowldge . I have spent the last two weeks developing an excel based application and that is it. I have to query using any unique value in the list aa2:aa58
The values in this list may not be unique . If I just search using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.