Results 1 to 13 of 13

Excel Debugging Issue

Threaded View

  1. #1
    Registered User
    Join Date
    06-27-2016
    Location
    America
    MS-Off Ver
    2011
    Posts
    5

    Excel Debugging Issue

    Hi Here is my code. It's my first day using excel's VBA tool, and I'm getting a mismatch error on the bolded line. Here is my data set.
    Screen Shot 2016-06-27 at 1.06.55 PM.png

    Sub Button1_Click()
    Dim i As Integer
    For i = 1 To 3741
        Dim count As Integer
        count = 0
        Dim j As Integer
        j = 0
        Do While Cells(i, 3).Value <> 1
            If Cells(i, 4).Value <> " " Then
             j = j + Cells(i, 4).Value
            End If
            count = count + 1
            i = i + 1
      Loop
     j = j / count
    Cells(i, 6).Value = j
    Next i
    End Sub
    Last edited by Vinkebot; 06-27-2016 at 04:08 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Debugging issue
    By Jietoh in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-23-2015, 06:21 PM
  2. [SOLVED] Debugging issue-Run time error 1004. What does this mean?
    By kevwilsondj in forum Excel General
    Replies: 5
    Last Post: 04-26-2015, 06:52 PM
  3. [SOLVED] Inconsistent scoping of Named Ranges - Debugging Issue
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 02:47 AM
  4. Debugging and Loop issue
    By harshjog123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-05-2012, 07:58 PM
  5. Debugging issue with VBA
    By betrayedslinky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2012, 11:37 AM
  6. Debugging issue with Step Into
    By Khaos176 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2009, 11:22 AM
  7. [SOLVED] Excel VBA debugging help needed!
    By mainemike in forum Excel General
    Replies: 4
    Last Post: 02-22-2006, 08:45 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