Results 1 to 11 of 11

Unlimited Range for VlookUp in Macro Code

Threaded View

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    42

    Exclamation Unlimited Range for VlookUp in Macro Code

    I am trying to program a Vlookup for Column C, however the macro will be used for more than one report. Can anyone show me how to program the range to be unlimited? When I put C655636 (the max amount of rows for Excel 2003), Excel freezes and will not respond. This is one part of a very large macro but I can not continue until this is solved.

    Your help is appreciated!

    Thanks!

    Sub ConductVlookupCopyOver()
    '
    ' ConductVlookupCopyOver Macro
    ' Macro recorded 1/4/2013 by cac1057
    '
    
    '
        Selection.Insert Shift:=xlToRight
        Range("C2").Select
        ActiveCell.FormulaR1C1 = _
            "=VLOOKUP(RC[-1],'[Previous Hold Transfer Report.XLS]HoldTransfer Over & Under 25 De'!C2,1,FALSE)"
        Range("C2").Select
        Selection.AutoFill Destination:=Range("C2:C943")
        Range("C2:C943").Select
    End Sub
    Last edited by fmfernandez11; 01-11-2013 at 11:16 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