Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default checking blank cells

I want to loop through cells starting with c8 and stop when the cell has no
content. How do you write code for that?
I tried:
Do Until IsEmpty(c8.Offset(a, 0)) = True
a = a + 1
Loop

but that is wrong. Please help me out! Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default checking blank cells

You need to tell vba what "c8" is.
Do Until IsEmpty(Range("C8").Offset(a,0)) 'Don't need = True because
IsEmpty is Boolean
a = a + 1
Loop

HTH

Die_Another_Day

Arne Hegefors wrote:
I want to loop through cells starting with c8 and stop when the cell has no
content. How do you write code for that?
I tried:
Do Until IsEmpty(c8.Offset(a, 0)) = True
a = a + 1
Loop

but that is wrong. Please help me out! Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IS BLANK checking 2 Cells MKuria Excel Worksheet Functions 6 March 6th 09 07:31 PM
checking for blank cells when using vlookup Koomba Excel Worksheet Functions 1 September 27th 08 03:30 AM
Checking Blank Cells Karlos Excel Worksheet Functions 2 February 27th 06 12:34 PM
Checking for all blank cells in a range orcolumn. Mikey Excel Programming 1 June 30th 05 03:59 PM
Checking iorAll blank cells in a column. Mikey Excel Programming 1 June 30th 05 03:53 PM


All times are GMT +1. The time now is 05:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"