Jump to content

Recommended Posts

Posted

I hope I have 2 instances of firefox and 1 of Excel open.

My problem is that in both instances of firefox I have mult tabs. each instance has a unique tab, one has the tab titled 'cases' and in the other instance has a tab titled 'history'. these tabs may not be in the first tabs position and I would like to be able to see if both instances are running and if not display an error. something like 'the firfox program with the tab 'Case' is not open

Also The Excel spreadsheet name is todays date so changes each day, is it possabel to display an error if excel is running and if the current date is in the name is not todays?

  • Moderators
Posted

For the Excel piece, you can always call the workbook  name, and compare to the current date:

#include <Date.au3>
#include <Excel.au3>
 
$oExcel = _ExcelBookNew(1)
 If $oExcel.ActiveWorkBook.Name <> _NowDate() Then
  ; Do Stuff
 Else
  ;Do Other Stuff
 EndIf

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...