Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default please help in this program

In a new sheet go to A1 and enter the value 1. In A2 enter the
following formula:
=IF(RAND()<0.9,A1,A1+1)
Copy the formula down until A30. The result will be groups of
increasing numbers. Select the entire column, Copy, Paste Special...
Values only, to stabilize the data.
Class Libraries
Task 1
Write a VBA macro to go down the list in column A:A. Every time a new
group starts, an empty row should be inserted to distinguish between
groups.
Task 2
Write another VBA macro to also insert a row before the first group.
Each inserted cell should now not be blank by say: Group X where X is
the number of the group that is following.

THATS THE PROBLEM , IF U PLEASE POST ANY HELP, IN VBA OF COURSE, THE
PROGRAMS SHOULD RUN FROM VB

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
Which program? Dear Sir Excel Discussion (Misc queries) 4 January 14th 07 07:27 PM
Program for inventory r1947 Excel Discussion (Misc queries) 2 August 14th 06 06:31 AM
IF () program Bee Excel Discussion (Misc queries) 1 June 5th 06 03:15 PM
My program SM Excel Worksheet Functions 2 October 22nd 05 04:52 AM
My Program SM Charts and Charting in Excel 1 October 21st 05 09:48 PM


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