Results 1 to 15 of 15

Numericall assigning cells in VBA

Threaded View

  1. #1
    Registered User
    Join Date
    05-26-2014
    Posts
    16

    Numericall assigning cells in VBA

    Good afternoon everybody,

    Excuse me for my title, but I really don't know what tag I could give my problem.

    Here it is:

    I'm trying with the help of VBA to find cells on a numericall way.
    I'm looking for data in a cell. If this data meets mt requirements, than I will asign a 1 to range("J27"). (pure for testing).
    The first data is in cell F11. The one in F12 etcetera. This has to be done for a whole lot of F's. Also, all the data is not +1 from each other, so then I will use i+3 for example. But because of the fact that this data can be extended in the future, (and a lot!), I have to work with an "i".

    This is what I have so far:

    For i = 11 To 20
    
    If Sheets("Configuration generator").Range("F" & i) = "=No Jib" Then
    Range("J27") = 1
    ElseIf Sheets("Configuration generator").Range("F" & i) = "=Extended" Then
    Range("J27") = 1
    ElseIf Sheets("Configuration generator").Range("F" & i) = "=Retracted" Then
    Range("J27") = 1
    End If
    
    i = i+1
    
    Next i
    When I run this, nothing happens.
    My suspicion is that I have to Define "i", or that there is more wrong with my code.
    I hope that you understand my story and also that you can help me with it!

    Thank you in advance!

    Kind regards,
    Bart
    Last edited by BartNL; 05-26-2014 at 09:44 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Assigning cells to weeks in a gradesheet
    By lky_3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-05-2012, 05:10 PM
  2. Excel numericall Solver
    By billywhiteshoes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2012, 02:41 PM
  3. =concatenate w/o assigning indv. cells
    By udontsay in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2010, 03:34 AM
  4. Assigning a block of cells to a name
    By Turvy86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2010, 04:57 PM
  5. assigning a point value to cells
    By AlienBeans in forum Excel General
    Replies: 19
    Last Post: 10-01-2006, 12:39 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