+ Reply to Thread
Results 1 to 2 of 2

VBA Coding for Data Validation

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    VBA Coding for Data Validation

    I am writing VBA code for validation and want to convert the following three formulas (normally typed into the validation source dialog box) for use in VBA code. As they are, they will not work. Can anyone help?

    "=OFFSET(Prov_Start,MATCH(A3,Prov_Column,0)-1,5,COUNTIF(Prov_Column,A3),1)"
    "=IF(D3="""",Category_List,INDEX(Category_Column,MATCH(D3,Equipment_Column,0))) "
    "=OFFSET(Category_Start,MATCH(C3,Category_Column,0)-1,8,COUNTIF(Category_Column,C3),1)"

    I will be setting them up as strings, then using the string in the validation code as follows:

    This is the example for the first validation. I get an error on the "Formula1:=strRefRange" line, as I am sure the syntax is incorrect in the string.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: VBA Coding for Data Validation

    did you try "RECORDING" the macro taking the steps and try to edit it.
    I am not an expert. better solutions may be available
    $$$$venkat1926$$$$@gmail.com

+ Reply to Thread

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