Results 1 to 7 of 7

Improvising a vlookup code

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Improvising a vlookup code

    Dear Experts,
    Code below takes about 7.5 mins to fill up the formula and then converting values in the cells
    (Total number of columns rows used in this sheet is 999,999 (which can vary).
    Converting to values is required as sheet 2 will be deleted after few steps.
    Please consider my VBA knowledge as zero as I am learning VBA through net and this forum
    Best Regads/VKS
     ‘---------------------- Part of macro created using record macro -------------------------
    ActiveCell.End(xlDown).Offset(0, -1).Select’******** Go to the last row
        Selection.End(xlUp).Offset(0, 1).Select’******** come back next to the last used cell of the column on left
        With range(Selection, Selection.End(xlUp))’***** to fills up the formula in all the cells
        .FormulaR1C1 = _
            "=IF(ISERROR(VLOOKUP(RC8,Sheet2!r1c1:r11735c3,2,FALSE)),""Indirect Location"",VLOOKUP(RC8,Sheet2!r1c1:r11735c3,2,FALSE))"
             .Value = .Value
            End With
    Last edited by VKS; 02-07-2013 at 12:11 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1