Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. noexit

    Conditional formula to open file

    Okay, the loop worked, but the example above opened both today's date, and the previous date. I modified it as follows. Sub OpenFile() Dim i As Integer Dim strFileName As String On Error Resume Next i = 0 Do Err.Clear strFileName = "File " &...
  2. noexit

    Conditional formula to open file

    Bongs code works great. Now how about on a monday or after a holiday? On another project, I just made a input box pop up asking for the previous day's date, stored that as a string, and used it when the previous day's date was needed. That seems the simplest right now, but if I can find a more...
  3. noexit

    Conditional formula to open file

    I have a file name saved by date, and I'd like to make a conditional formula to check to see if there's a file name with the current date in it, and if not, open the previous day's file. This code will open the two files. Sub OpenFile() Dim strYesterdayFile As String Dim strTodayFile As String...

Part and Inventory Search

Back
Top