Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Error when running VLookup

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0
    Hi p45cal, sorry bout the confusion on the comments. Most of them are useless, just stuff I experimented with but left it there in case I want to get back to it. The line that should be running is this
    Code:
    VoltageDrop = WorksheetFunction.VLookup(Val(LoadCurrentText.Text), Worksheets(WorksheetName).Range(Cells(10, Column), Cells(26, VoltageDropColumn)), ReturnColumn)
    which is uncommented at line 365.
    I run this line several times throughout the codsso once I've figured out one of them, the rest should be fine as well.

    As for the Microsoft Office Web Components, that's the spreadsheet in the userform which is currently working fine. So if you don't mind, you could delete that spreadsheet and in the codes that start with DataTable. lines:10 to 18, and the entire private_sub tables_change().

    I have a total of 8 worksheets, from DataPVC1 to DataPVC4 and DataThermo1 to DataThermo4. I've deleted 6 of these worksheets as the file was too big to upload. I just realized I used the string format for the WorksheetNumber!! No wonder it only works for worksheets labelled 1. Thanks for pointing this out! I'll go try out again before updating here.

  2. #2
    Junior Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0
    Copy of CableSizingSelection.zip I compressed the folder. Not sure if this works

  3. #3
    Junior Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0
    Here's the updated copy of the worksheet when I switch to using index match instead of vlookup.
    Attachment 1510

    I've posted this question over here as well Error with index match function - Page 2
    Attached Files Attached Files
    Last edited by mcbrocks; 03-12-2014 at 06:14 AM.

Similar Threads

  1. Replies: 1
    Last Post: 10-30-2013, 10:27 PM
  2. Macro stops running if date is not in past...
    By Carlos Arruda in forum Excel Help
    Replies: 4
    Last Post: 03-10-2013, 04:33 PM
  3. Saving and Running Macro For Multiple Files / Users
    By Charles_ in forum Excel Help
    Replies: 1
    Last Post: 01-07-2013, 09:10 AM
  4. Workbook Event running VBA question
    By jamilm in forum Excel Help
    Replies: 4
    Last Post: 12-29-2012, 12:12 AM
  5. Running a VBA in all excel files
    By msiyab in forum Excel Help
    Replies: 3
    Last Post: 12-26-2012, 01:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •