Results 1 to 8 of 8

putting a function into VB code

Threaded View

  1. #1
    Registered User
    Join Date
    10-03-2015
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    6

    putting a function into VB code

    I have looked at other boards but I cannot seem to figure out how to put a function into VB code and have it work correctly

    I am trying to put this formula into VB:
    =INDEX('Data'!$G:$G,MATCH($C$6,'Data'!$C:$C,0)+4)

    Following some other pages I have tried to use this:
    test = Application.WorksheetFunction.Index(Sheets("Data").Range("C:C"), Application.WorksheetFunction.Match(1, Sheets("Data").Range("G:G"), 0), 4)
    Thanks in advanced for your help
    Last edited by Pontiac; 10-05-2015 at 04:41 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need help putting together a nested IF function with AND/OR ??
    By TerryBogard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-22-2015, 08:08 PM
  2. Function in VBA and putting it into excel
    By lucya67 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2015, 03:58 AM
  3. VBA coding for putting VLookup function
    By aravindkm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2014, 03:16 AM
  4. Putting Code To A Button In Excel / VB
    By Rapid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-16-2013, 12:04 PM
  5. Replies: 10
    Last Post: 12-16-2011, 12:41 PM
  6. Putting Input box into existing code
    By jpthelpguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2009, 02:14 AM
  7. Putting UDF in custom or predefined function category
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2006, 04:55 AM

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