Jump to content

If ExcelFile Name is "NAME" question


Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...