Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Using roundup() but on a whole spreadsheet instead of since cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bobmanuk - 08 May 2008 14:59 GMT
Hi,

I need to update a fairly large spreadsheet so that all numbers are rounded
up... using roundup()

Ive looked around and ive come to the conclusion i need to use VBA.

can anyone help?

thanks.

Matty
Bob Phillips - 08 May 2008 16:45 GMT
For Each cell In ActiveSheet.UsedRange

   If Not cell.HasFormula Then

       If cell.Value <> "" Then

           cell.Value = Application.RoundUp(cell.Value, 0)
       End If
   End If
Next cell

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi,
>
[quoted text clipped - 9 lines]
>
> Matty
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.