ScriptCrafter Posted December 21, 2009 Share Posted December 21, 2009 Hello, Is there a way to cross reference an ExcelFile name. I have tried several derivitives of If Then trying to match an Excel file that has been opened and stored to a variable and nothing seems to work. Im looking for somehting like If ExcelFileName = "FILE.csv" Then msgbox (0, "HI" "YOU GOT IT") else msgbox (0, "BYE" YOU DIDNT") EndIf Thank You Link to comment Share on other sites More sharing options...
ScriptCrafter Posted December 21, 2009 Author Share Posted December 21, 2009 Hello, Is there a way to cross reference an ExcelFile name. I have tried several derivitives of If Then trying to match an Excel file that has been opened and stored to a variable and nothing seems to work. Im looking for somehting like If ExcelFileName = "FILE.csv" Then msgbox (0, "HI" "YOU GOT IT") else msgbox (0, "BYE" YOU DIDNT") EndIf Thank You BUMP because I am still stuck Link to comment Share on other sites More sharing options...
contrex Posted December 22, 2009 Share Posted December 22, 2009 (edited) I found 4 errors in your code. 1 missing dollar sign, 2 missing commas, 1 missing quote. So look at your code. Edited December 22, 2009 by contrex Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now