+ Reply to Thread
Results 1 to 5 of 5

Testing a cell for value

  1. #1
    Registered User
    Join Date
    06-04-2007
    Posts
    61

    Testing a cell for value

    I am using the following in the beginning of a macro but it never passes due to the last line.
    Please Login or Register  to view this content.
    A2 = 1 - in the Empower Import sheet

    Should I be doing this evaluation another way?

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    What are you doing in the while loop? Incrementing RowCount?


    rylo

  3. #3
    Registered User
    Join Date
    06-04-2007
    Posts
    61
    Yes, Iam am incrementing RowCount within the loop but the problem is that it never gets into the loop. The Do While never evaluates. During debug, I can see that RowCount is at 2 but the Cells(RowCount, 1) never evaluates.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    So presumably there is nothing in A2???


    rylo

  5. #5
    Registered User
    Join Date
    06-04-2007
    Posts
    61
    Silly me, I was trying to do this within a sheet and not a module. I have since moved this to a module and all is great.

    Sorry for being silly

+ 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