Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default What is this code doing?


Application.StatusBar = "Calculating Year 1"
Sheets("Assumptions").Range("G10") = 0
Do While Sheets("Financial Statements").Range("G70")
Sheets("Assumptions").Range("G70")
Sheets("Assumptions").Range("G10")
Sheets("Assumptions").Range("G10") + 0.0005
Loo

--
chalk
-----------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...fo&userid=2375
View this thread: http://www.excelforum.com/showthread.php?threadid=56896

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default What is this code doing?

hello,

First of all "Application.StatusBar = "Calculating Year 1"" just sets the
status bar to "calculating year 1".

Then it defines G10 on your Assumptions sheet to 0.

the loop is just going comparing two different cells, G70 on Financial
statements with G70 on Assumptions. As long as G70 on Assumptions is less
than G70 on Financial Statements then G10 on Assumptions is incremented by
0.0005. This will continue until G70 on Assumptions is larger than the other
cell (which unless something else changes will never happen (infinite loop)
or will happen right away (if it's already larger)).

That's about it,

Cheers,

Scott

"chalky" wrote:


Application.StatusBar = "Calculating Year 1"
Sheets("Assumptions").Range("G10") = 0
Do While Sheets("Financial Statements").Range("G70") <
Sheets("Assumptions").Range("G70")
Sheets("Assumptions").Range("G10") =
Sheets("Assumptions").Range("G10") + 0.0005
Loop


--
chalky
------------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...o&userid=23758
View this thread: http://www.excelforum.com/showthread...hreadid=568962


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default What is this code doing?


Thats pretty much what i suspected - thanks for that!


--
chalky
------------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...o&userid=23758
View this thread: http://www.excelforum.com/showthread...hreadid=568962

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
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
stubborn Excel crash when editing code with code, one solution Brian Murphy Excel Programming 0 February 20th 05 05:56 AM
option buttons run Click code when value is changed via VBA code neonangel Excel Programming 5 July 27th 04 08:32 AM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


All times are GMT +1. The time now is 08:46 PM.

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"