Jump to content

HPJ

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by HPJ

  1. I've had success using the below method to get the filename of txt files. You can add your own filters to the open dialog: 'Open File Dialog ang get the filename that was picked Dim objDialog 'Create a dialog object Set objDialog = CreateObject( "UserAccounts.CommonDialog" ) 'Filter so only txt files are shown objDialog.Filter = "Mast Siting Files|*.txt" 'Open the dialog and return the selected file name If objDialog.ShowOpen Then GetFileName = objDialog.FileName Else GetFileName = "" End If Then your filename will be in the GetFileName variable.
  2. Works perfectly, I can set the tables as I want. There's further complications though; I need to check (one at a time) each TurbineSite to see if there's a 'local' wtg attached. If not I'll need to attach 'locally' the wtg from the level above and at the same time keep the original for all the other sites in that group. Then do some calculations and then delete the 'local' copy before moving on to the next TurbineSite. Any chance of that happening? I hope it's clear what I'm trying to do. If not let me know :-) Thanks HP
  3. Thanks Duncan, I prefer fiddling with it myself to start with, but I can't guarantee I won't be back for that sample ;-)
  4. Hi, I'm trying to do a script in WAsP that'll delete all sites under a site group... Which method should I use to delete a site?
×
×
  • Create New...