+ Reply to Thread
Results 1 to 8 of 8

Looping Sum, If cell begins With

  1. #1
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152

    Looping Sum, If cell begins With

    Hi,

    my loop is not working and i can't figure out why?

    Also how do i get the macro to find cells that begin with that number and do not equal it?

    Thanks,

    Please Login or Register  to view this content.
    Last edited by jonn; 06-06-2007 at 11:52 AM.

  2. #2
    mpeplow
    Guest
    I don't know about your loop, how is it not working? What is it doing?

    About this
    Please Login or Register  to view this content.
    try

    Please Login or Register  to view this content.
    Last edited by mpeplow; 06-06-2007 at 03:27 PM.

  3. #3
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    hi what does that do?

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    Quote Originally Posted by mikerickson
    Please Login or Register  to view this content.
    hi,

    can you explain that formula to me

    Thanks,

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    InStr is VB's version of search.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    Cool Thanks,

    It keeps Bringing up an 'Application -defined or object defined error on the: -

    'If InStr(CStr(ws1.Cells(i, A)), "0124") = 1 Then'

    line? any ideas

    Please Login or Register  to view this content.

  8. #8
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    A isn't defined, which would cause an error.

+ 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