• VLOOKUP Anomalies (97 SR2)

    Author
    Topic
    #380460

    A customer sends us their orders in CSV format. I created a template where macros open the CSV file, formats the data and save it as .xls. The xls data is then transferred to summary sheets. The data in the summary sheet is then cut and pasted into an overall sheet where a Vlookup picks up the customer store code and adds our customer code. The lookup table is held in another file in the same directory.
    From time to time this lookup table file is updated and the new files distributed to users.
    The problem I have is that the lookup value returned is randomly a value that was in the old lookup table, or #N/A. If you click on the formula bar and press enter, then the correct value is returned.! Links shown in he workbook are correct. Excel has been re-installed.
    Can anyone shed any light on possible sources of this problem, as I have searched for other instances of the lookup file on the C disk, without success.
    hairout NewZealand

    Viewing 0 reply threads
    Author
    Replies
    • #637261

      My guess is that XL does a poor job recalculating here. Maybe good to include this little sub at the end of your manipulation code:

      Sub CalcFullXL97()
      Sendkeys”^%{F9}”
      DoEvents
      End Sub

      • #637403

        Thanks Hans, I will add your code to see if this will cure the user’s problem.
        cheers NewZealand

    Viewing 0 reply threads
    Reply To: VLOOKUP Anomalies (97 SR2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: