It is worth noting that when running scripts the Portfolio app window, if still visible, doesn't tend to update in the manner you expect - so don't use visual feedback from the app window as part of your process. It is better to plan the whole thing as if you never see Portfolio at all.
You can use VB's SendKeys method to pass Ctrl+Shift+U (Update Items... command) which will refresh the Portfolio interface though it can be slow on a large Catalogue and so should only be done at the end. Version 6's TLB has added a Refresh method allowing you to achieve this without resorting to SendKeys.
If selecting items on screen, be aware there is a long-standing bug (or error of implementation) in the Windows version UI. It means record selections are highlighted but not subsequently un-highlighted when doing Ctrl+click multiple selections/de-selections as is standard for any other Windows program I've seen. Apparently the actual selection is correct but you'll never tell that from the visual feedback (or lack of it). The bug was in v4 and the last time I asked there seemed little sign of it getting fixed.
Question: Portfolio program window does not reflect script actions [FAQ00096.htm]
Last Update:- 31 May 2006
Site and articles © Mark Anderson 2001-2007 - Visit my home page