Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Cell counting question

I have a data base marco and I want to know how to write a
small macro. I need it to count the number of blank cells
in column A and when it meets the fourth blank cell
activate this prgoram I have recorded. Obviously I would
want the program to be started in column M and whatever
row the 4th blank cell would be in.

Range("M1232").Select
ActiveCell.FormulaR1C1 = "LOADS"
Range("O1232").Select
ActiveCell.FormulaR1C1 = "=SUM((R[-2]C)+(R[-2]C
[2]))/42000"
Range("S1232").Select
ActiveCell.FormulaR1C1 = "=SUM((R[-2]C[-4])+(R[-2]C[-
2])-(R[-2]C))/42000"
Range("S1233").Select
End Sub
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
Counting question John Excel Worksheet Functions 16 June 4th 10 05:46 PM
a Counting question cinnie Excel Worksheet Functions 4 March 19th 10 06:08 PM
Counting Question! Danny Boy Excel Worksheet Functions 9 January 26th 09 08:42 PM
Counting Question Gina[_2_] Excel Discussion (Misc queries) 6 July 31st 08 11:00 PM
Counting question Carl Excel Discussion (Misc queries) 11 March 11th 05 09:28 PM


All times are GMT +1. The time now is 05:24 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"