Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Inserting Rows on the fly

I have an interesting project to work on and I am not quite sure what
the best method to attack it would be.

I have two sheets.... 'Footages' and 'Breakdown'

Footages is a general line item description with footages for each
floor, with the floors laid out in columns starting with 1 thru X

Breakdown pulls the description and the total footage from the
Footages sheet.

What I need to do is dynamically create line items in the Breakdown
sheet per floor. Example: If I enter on the Footages page, Wall Type
A, with 100 feet on each of the first 3 floors, I have 300 total feet
for Wall Type A but on my Breakdown sheet I need it pull the total
line, then recognize something in the 1st floor column and add a line
item below the total and do the same for the 2nd floor, the 3rd floor,
and so on...

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Inserting Rows on the fly

It looks to me like you'll need a Worksheet.Change event on the Footages
sheet.

"Matt" wrote:

I have an interesting project to work on and I am not quite sure what
the best method to attack it would be.

I have two sheets.... 'Footages' and 'Breakdown'

Footages is a general line item description with footages for each
floor, with the floors laid out in columns starting with 1 thru X

Breakdown pulls the description and the total footage from the
Footages sheet.

What I need to do is dynamically create line items in the Breakdown
sheet per floor. Example: If I enter on the Footages page, Wall Type
A, with 100 feet on each of the first 3 floors, I have 300 total feet
for Wall Type A but on my Breakdown sheet I need it pull the total
line, then recognize something in the 1st floor column and add a line
item below the total and do the same for the 2nd floor, the 3rd floor,
and so on...


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Inserting Rows on the fly

On May 23, 6:24 pm, Barb Reinhardt
wrote:
It looks to me like you'll need a Worksheet.Change event on the Footages
sheet.



"Matt" wrote:
I have an interesting project to work on and I am not quite sure what
the best method to attack it would be.


I have two sheets.... 'Footages' and 'Breakdown'


Footages is a general line item description with footages for each
floor, with the floors laid out in columns starting with 1 thru X


Breakdown pulls the description and the total footage from the
Footages sheet.


What I need to do is dynamically create line items in the Breakdown
sheet per floor. Example: If I enter on the Footages page, Wall Type
A, with 100 feet on each of the first 3 floors, I have 300 total feet
for Wall Type A but on my Breakdown sheet I need it pull the total
line, then recognize something in the 1st floor column and add a line
item below the total and do the same for the 2nd floor, the 3rd floor,
and so on...- Hide quoted text -


- Show quoted text -


Okay. That is what I was thinking but I wasn't sure if using some
type of Event Handler would be the best method.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Inserting Rows on the fly

I would recommend putting something at the beginning to check for the
specific cells that you are updating. Something like this:

If not intersect(target,Range("A3")) is nothing then
'Put your actions here.
End if

I'd also recommend that you give your worksheets some CodeNames. Try right
clicking on either of the sheet tabs and view code. Then press F4 to see the
properties window. In the Project window, select (say) the Footages sheet.
In the Properties window, you'll probably see

(Name) Sheet1

Change Sheet1 to Footages.

When you reference items on that sheet, use

Footages.range(...) or
Footages.Cells(...)

I find it easier to keep track of my code when I use Worksheet CodeNames.

HTH,
Barb Reinhardt

"Matt" wrote:

On May 23, 6:24 pm, Barb Reinhardt
wrote:
It looks to me like you'll need a Worksheet.Change event on the Footages
sheet.



"Matt" wrote:
I have an interesting project to work on and I am not quite sure what
the best method to attack it would be.


I have two sheets.... 'Footages' and 'Breakdown'


Footages is a general line item description with footages for each
floor, with the floors laid out in columns starting with 1 thru X


Breakdown pulls the description and the total footage from the
Footages sheet.


What I need to do is dynamically create line items in the Breakdown
sheet per floor. Example: If I enter on the Footages page, Wall Type
A, with 100 feet on each of the first 3 floors, I have 300 total feet
for Wall Type A but on my Breakdown sheet I need it pull the total
line, then recognize something in the 1st floor column and add a line
item below the total and do the same for the 2nd floor, the 3rd floor,
and so on...- Hide quoted text -


- Show quoted text -


Okay. That is what I was thinking but I wasn't sure if using some
type of Event Handler would be the best method.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Inserting Rows on the fly

On May 24, 5:13 am, Barb Reinhardt
wrote:
I would recommend putting something at the beginning to check for the
specific cells that you are updating. Something like this:

If not intersect(target,Range("A3")) is nothing then
'Put your actions here.
End if

I'd also recommend that you give your worksheets some CodeNames. Try right
clicking on either of the sheet tabs and view code. Then press F4 to see the
properties window. In the Project window, select (say) the Footages sheet.
In the Properties window, you'll probably see

(Name) Sheet1

Change Sheet1 to Footages.

When you reference items on that sheet, use

Footages.range(...) or
Footages.Cells(...)

I find it easier to keep track of my code when I use Worksheet CodeNames.

HTH,
Barb Reinhardt



"Matt" wrote:
On May 23, 6:24 pm, Barb Reinhardt
wrote:
It looks to me like you'll need a Worksheet.Change event on the Footages
sheet.


"Matt" wrote:
I have an interesting project to work on and I am not quite sure what
the best method to attack it would be.


I have two sheets.... 'Footages' and 'Breakdown'


Footages is a general line item description with footages for each
floor, with the floors laid out in columns starting with 1 thru X


Breakdown pulls the description and the total footage from the
Footages sheet.


What I need to do is dynamically create line items in the Breakdown
sheet per floor. Example: If I enter on the Footages page, Wall Type
A, with 100 feet on each of the first 3 floors, I have 300 total feet
for Wall Type A but on my Breakdown sheet I need it pull the total
line, then recognize something in the 1st floor column and add a line
item below the total and do the same for the 2nd floor, the 3rd floor,
and so on...- Hide quoted text -


- Show quoted text -


Okay. That is what I was thinking but I wasn't sure if using some
type of Event Handler would be the best method.- Hide quoted text -


- Show quoted text -


Thanks! I appreciate the comments and thoughts.

Matt

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
inserting rows inbetween rows of data ? Azeem Excel Discussion (Misc queries) 1 October 27th 09 07:38 AM
Copying & Inserting Rows w/o Affecting other Rows Etc. LRay67 Excel Worksheet Functions 1 October 22nd 08 02:10 AM
Inserting Blank rows after every row upto 2500 rows Manju Excel Worksheet Functions 8 August 22nd 06 12:54 PM
Why is inserting rows throwing off my hidden rows jgeniti[_2_] Excel Programming 4 March 9th 06 11:25 PM
Inserting multiple rows in excel with data in consecutive rows technotronic Excel Programming 2 October 20th 05 03:12 PM


All times are GMT +1. The time now is 12:41 PM.

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"