LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Macro with an IF/OR statement

Need help finding a way to write a macro with an IF/OR statement.
Have a report that compiles all the data on a single row. So for each
parent, all of their data will be on the same row. At the end of the row, I
have created an IF/OR statement that counts the number of children for each
parent in that row.
I have also created a macro that will allow me to insert additional rows,
based on the number in that column at the end of the row.
Now trying to find a macro that will copy the children's information off
that row to the newly inserted rows below. Not sure if it is possible, since
the number of children vary per parent.
Currently row data looks like:
Name Address City St Child1Name Child1DOB Child2Name Child2DOB # of children
Need for it to now show:
Name Address City St Child1Name Child1DOB
# of children
Child2Name Child2DOB
 
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
Run a macro from an If statement Steve[_13_] Excel Programming 1 July 30th 07 02:20 AM
Macro statement when opening file, but no macro Robert Smith[_3_] Excel Programming 3 May 20th 07 05:58 PM
Help I need a macro or IF Statement Mascot Excel Programming 6 August 2nd 06 07:42 PM
Macro If Statement Mark64 Excel Programming 2 March 10th 06 11:08 PM
Run Macro From If Statement tkaplan[_2_] Excel Programming 0 June 3rd 05 06:31 PM


All times are GMT +1. The time now is 10:48 AM.

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

About Us

"It's about Microsoft Excel"