Hi everyone,
My problem is very straightforward. I want to export the feed stage number of a distillation column from HYSYS to excel, but I don't know what object I should select when I'm coding the macro. Any suggestions?
Thank you very much!
|

Excel Macro Object For Column Feed Stage
Started by fydphm, Dec 16 2011 11:16 PM
hysy export to excel
1 reply to this topic
Share this topic:
#1
Posted 16 December 2011 - 11:16 PM
#2
Posted 01 January 2012 - 03:33 AM
My knowledge in this is area is pretty poor but getting most of the variables is possible.
When I search for ‘feedstage’ using object browser in HYSYS library it shows, class as _TraySection and member as FeedStages but TraySection class is somehow hidden (I don’t know what that means in VB). If you can use this, task should be very straight forward.
Few variables are actually not exposed in OLE but most of the variables are exposed in script manager. To combine power of two methods, record a simple script using script manager which will give you monikers and call these monikers using backdoor entry in VB. Again I don’t know exactly how this is done (OLE part, scripting is pretty straight forward) so can’t write code for you. Probably below link may help you
http://www.eng-tips.....cfm?qid=169881
When I search for ‘feedstage’ using object browser in HYSYS library it shows, class as _TraySection and member as FeedStages but TraySection class is somehow hidden (I don’t know what that means in VB). If you can use this, task should be very straight forward.
Few variables are actually not exposed in OLE but most of the variables are exposed in script manager. To combine power of two methods, record a simple script using script manager which will give you monikers and call these monikers using backdoor entry in VB. Again I don’t know exactly how this is done (OLE part, scripting is pretty straight forward) so can’t write code for you. Probably below link may help you
http://www.eng-tips.....cfm?qid=169881
Similar Topics
Split The Feed Into Two Identical StreamsStarted by Guest_tomr91_* , 16 Mar 2025 |
|
![]() |
||
Refinery Lpg Deethanizer Column DesignStarted by Guest_Ilyes_* , 15 Feb 2025 |
|
![]() |
||
![]() Methanol Water Distillation ColumnStarted by Guest_Kakashi-01_* , 27 Jan 2025 |
|
![]() |
||
Effect Of Continuous Blow Down To Boiler Feed WaterStarted by Guest_Dyames027_* , 21 Nov 2024 |
|
![]() |
||
Aspen V11 Help On Radfrac Distillation Column ErrorStarted by Guest_savinedanglokta_* , 13 Nov 2024 |
|
![]() |