Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Rewriting equation for VB

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Rewriting equation for VB

This? Or have I missed something?

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


"Barb Reinhardt" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Rewriting equation for VB

Think you would need the second argument to roundup as well.

--
Regards,
Tom Ogilvy


"Toppers" wrote in message
...
This? Or have I missed something?

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


"Barb Reinhardt" wrote:

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SAVING AND REWRITING CHARTS F. Lawrence Kulchar Charts and Charting in Excel 2 October 21st 07 08:45 AM
Need help rewriting a macro S Willingham Excel Worksheet Functions 1 May 8th 07 04:52 AM
Rewriting a formula... Roz Excel Discussion (Misc queries) 3 January 6th 06 04:08 PM
Equation Editor- problem when editing an equation Gaby L. Excel Discussion (Misc queries) 0 September 27th 05 09:24 PM
Which is the best language for rewriting code into DLL's ? Charles Jordan Excel Programming 7 February 19th 04 04:32 PM


All times are GMT +1. The time now is 03:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"