Ah that was fast and PERFECT :), i suppose, cell(i,2), the 2 is for column
B, 3 C 4 D and so on(this is a huge implement in my learning), many many
many thanks Ashish, perfect as always :))))))))).

2011/7/14 ashish koul <[email protected]>

> try this
>
> Sub fill2010real()
> Dim i As Long
> i = 1
> Do Until Cells(i, 2).Value = "Total"
> Cells(i, 1).Value = "2010 Real"
> i = i + 1
> Loop
> End Sub
>
>
> On Thu, Jul 14, 2011 at 5:39 AM, Jorge Marques <[email protected]>wrote:
>
>> Hi guys, i have this table where i want to fill the column A with "2010
>> Real" but stopping when in the same row the column B is "Total" i used Do &
>> Loop but i can´t seem to find the right code.
>>
>> sub fill2010real()
>> Do until range("B:B").value = "Total"
>> range("A:A").value = "2010 Real"
>> loop
>> end sub
>>
>> I can´t seem to go around this code :(
>>
>> 1001 thanks to all of you!excel-lent as always :)
>>
>>
>>  --
>>
>> ----------------------------------------------------------------------------------
>> Some important links for excel users:
>> 1. Follow us on TWITTER for tips tricks and links :
>> http://twitter.com/exceldailytip
>> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
>> 3. Excel tutorials at http://www.excel-macros.blogspot.com
>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>>
>> To post to this group, send email to [email protected]
>>
>> <><><><><><><><><><><><><><><><><><><><><><>
>> Like our page on facebook , Just follow below link
>> http://www.facebook.com/discussexcel
>>
>
>
>
> --
> *Regards*
> * *
> *Ashish Koul*
> *akoul*.*blogspot*.com <http://akoul.blogspot.com/>
> http://akoul.posterous.com/
>  *akoul*.wordpress.com <http://akoul.wordpress.com/>
> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830>
>
>
> P Before printing, think about the environment.
>
>
>  --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to [email protected]
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to [email protected]

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to