Results 1 to 6 of 6

Do While there are values in column A

Threaded View

concatch Do While there are values in... 05-24-2012, 02:53 AM
Steffen Thomsen Re: Do While there are values... 05-24-2012, 03:02 AM
zbor Re: Do While there are values... 05-24-2012, 03:08 AM
aussieboykie Re: Do While there are values... 05-24-2012, 03:18 AM
concatch Re: Do While there are values... 05-24-2012, 04:51 AM
Steffen Thomsen Re: Do While there are values... 05-24-2012, 05:03 AM
  1. #1
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    107

    Do While there are values in column A

    Hi,

    I'm a beginner to VBA and I'm having some difficulty. I have values in cells A1:A10. What I wants to do it create a while loop to insert a specific value into B1:B10 ie it will stop when there are nolonger values in A column which will occur at A11.

    Here is my code so far:

    Sub Do_While_5()
    
    Dim x As Integer
    
    x = 1
    
    Do While IsEmpty(Range("A:A").Select) = False
    
    
        Cells(x, 2).Select
        Cells(x, 2).Value = 123456
        
    x = x + 1
    
    Loop
        
    End Sub
    Thanks in advance
    Last edited by concatch; 05-24-2012 at 04:54 AM.

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