Results 1 to 6 of 6

Vlookip to VBA Script

Threaded View

  1. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Vlookip to VBA Script

    May be this..
    Sub Macro1()
        Range("C2").Formula= "=VLOOKUP(""*""&A2&""*"",Sheet2!B:B,1,0)"
        Range("C2").select
        Set DesRange=Range("C2:"& Cells(Cells(Rows.count,"A").end(xlup).Row,"C").address)
        Selection.AutoFill Destination:=DesRange, Type:=xlFillDefault    
    End Sub
    A Sample workbook with non sensitive data would be helpful....
    Last edited by Vikas_Gautam; 10-07-2014 at 10:23 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. script to run the macro from Vb script with out opening the excel file
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2021, 03:33 AM
  2. [SOLVED] To pull multiple data not captured by Vlookip
    By darshu85 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2012, 02:48 PM
  3. Excel 2007 : Find and match - Vlookip/Script
    By macpegg in forum Excel General
    Replies: 3
    Last Post: 10-26-2011, 10:24 AM
  4. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  5. Script that edits the text printed on the button that runs the script
    By petalred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2008, 02:41 PM

Tags for this Thread

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