Rewriting equation for VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following equation

.MaximumScale = 5 * RoundUp((Max / 5) / (10 ^ (Len((Max / 5)) -
1)), 0) * (10 ^ (Len((Max / 5)) - 1))


Max is a value that's previously been determined and the formula are the
Excel equivalents. How do I rewrite this so that it's evaluated
programmatically?

Thanks in advance,
Barb Reinhardt
 
This? Or have I missed something?

MaximumScale = 5 * Application.RoundUp((Max / 5) / (10 ^ (Len((Max / 5)) -
1)), 0) * (10 ^ (Len((Max / 5)) - 1))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top