Private Sub CommandButton1_Click() TextBox2.Text = Application.RoundUp(Val(TextBox1.Text), 0)
End Sub 100.1 results to be 101. Daniel De : excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] De la part de Shankar Bheema Envoyé : mercredi 7 septembre 2011 15:52 À : excel-macros@googlegroups.com Objet : $$Excel-Macros$$ rounding to next higher rupee I am attaching an excel file with inserted userform. I have given command button to roundoff the figure in textbox1.text to the next higher rupee. I have given the code as textbox2.text=Round(val(textbox1.text),0) but its returning wrong result. if i have given 100.1 in textbox1.text the result should be 102 in textbox2.text -- ---------------------------------------------------------------------------- ------ Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel