Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default count colomns

Hi, Id like to know how to count in row "A1" how many cells contain
data. Eg a1,b1,c1,d1 etc.
Blanks shoudnt be a problem as Im entering data in each col, so a blank
cell would me the end of data entry anyway.
Regards Robert

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default count colomns

for i = 1 to 10
cnt = application.CountA(columns(i))
msgbox "Col: " & i & " cnt: " & cnt
Next

--
Regards,
Tom Ogilvy


"RobcPettit" wrote:

Hi, Id like to know how to count in row "A1" how many cells contain
data. Eg a1,b1,c1,d1 etc.
Blanks shoudnt be a problem as Im entering data in each col, so a blank
cell would me the end of data entry anyway.
Regards Robert


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default count colomns

Thanks For your reply. Thats perfect.
Regards Robert
Tom Ogilvy wrote:
for i = 1 to 10
cnt = application.CountA(columns(i))
msgbox "Col: " & i & " cnt: " & cnt
Next

--
Regards,
Tom Ogilvy


"RobcPettit" wrote:

Hi, Id like to know how to count in row "A1" how many cells contain
data. Eg a1,b1,c1,d1 etc.
Blanks shoudnt be a problem as Im entering data in each col, so a blank
cell would me the end of data entry anyway.
Regards Robert



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
Delete colomns and rows myshak Excel Worksheet Functions 3 March 7th 09 02:13 AM
colomns got swoeched marrie New Users to Excel 11 September 18th 06 06:02 PM
re-name colomns i.e A,B,C, etc swede Excel Discussion (Misc queries) 4 September 12th 06 06:50 PM
how to merge 2 colomns Narendra Excel Worksheet Functions 1 August 31st 06 07:00 AM
how to get more than 256 colomns in excel sheet ? sheshtar5212 Excel Discussion (Misc queries) 2 April 19th 05 04:01 PM


All times are GMT +1. The time now is 04:38 PM.

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"