Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications

Post new topic   Reply to topic
Visual Basic in Excel
View previous topic :: View next topic  
Author Message
ktan
Newbie


Joined: 17 Mar 2005
Posts: 2

PostPosted: Mar 17th, 2005 09:15 PM    Post subject: Visual Basic in Excel Reply with quote

Hi,

I'm currently trying to write a code/script using Visual Basic, however not sure if it is possible.


Scenerio:
For instant, a building is controlled by the main power source..if it goes down/faulty, all the facilites in the building will be affected and without power.
If any one of the sub-power source goes down (eg B, C or D), only the associate facilites controlled by that sub-power source will be affected.
eg if B goes down, only E will be affected.
if D goes down, only F will be affected, because G connects to H as well and H is ok. (G connects to D and H sub-power source)

A = main power source
B, C, D, E = sub-power source
F, G, H, J= facilities

A
/ / \ \
B C D E
| | / \ /
F G H J

I may just need to enter the function in one of the cell in EXCEL, ( by referring the value in another cell and it will extract the info from a file) and it will tabulate the facilities which (of the above) are being affected.

For eg. A goes down, and it will show B thru' J go down
H goes down, and it will show L goes down (because G connects to D as well,therefore will not be affected)


Appreciate if anyone could be able to give me some suggestions/solutions. Many Thks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic