#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Insert row

Hi, I used someone else's answer below to write code to find something in a
call and when it finds the character it will insert a blank row. But, I have
this sheet linked to another sheet where I also want the blank row to show.
It doesn't, it just skips the blank row and jumps to the next line. Any idea
how to insert a row and have it push the blank to the linked sheet?

Thanks,
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Insert row

It would help to show the code you have so far, and explain how the sheets
are linked.

Tim

"johnrb7865" wrote in message
...
Hi, I used someone else's answer below to write code to find something in
a
call and when it finds the character it will insert a blank row. But, I
have
this sheet linked to another sheet where I also want the blank row to
show.
It doesn't, it just skips the blank row and jumps to the next line. Any
idea
how to insert a row and have it push the blank to the linked sheet?

Thanks,
John



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Insert row

Hi Tim, here is what I am doing. I have switched from adding a row to adding
cells and shifting the other cells down. I thought that might help but it
doesn't. I have the sheet where the cells are inserting linked to another
sheet and when I insert the cells the formulas on the linked sheet change to
just skip the blank cell. Is there a way to have the cells that are linked
hold that absolute value (to the linked cell) even when the originating sheet
changes?

RowCount = 2
FirstRow = 2
Do While Range("A" & RowCount) < ""
If Range("G" & (RowCount)) < Range("G" & (RowCount + 1)) Then

Range("A" & RowCount + 1).Select
Selection.Insert Shift:=xlDown
Range("B" & RowCount + 1).Select
Selection.Insert Shift:=xlDown
Range("C" & RowCount + 1).Select
Selection.Insert Shift:=xlDown
Range("G" & RowCount + 1).Select
Selection.Insert Shift:=xlDown
Range("H" & RowCount + 1).Select
Selection.Insert Shift:=xlDown

RowCount = RowCount + 2
FirstRow = RowCount
Else
RowCount = RowCount + 1

End If
Loop

Thanks,
John

"Tim Williams" wrote:

It would help to show the code you have so far, and explain how the sheets
are linked.

Tim

"johnrb7865" wrote in message
...
Hi, I used someone else's answer below to write code to find something in
a
call and when it finds the character it will insert a blank row. But, I
have
this sheet linked to another sheet where I also want the blank row to
show.
It doesn't, it just skips the blank row and jumps to the next line. Any
idea
how to insert a row and have it push the blank to the linked sheet?

Thanks,
John




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Insert row

Hi Tim, I got it to work.

Thanks,
John

"Tim Williams" wrote:

It would help to show the code you have so far, and explain how the sheets
are linked.

Tim

"johnrb7865" wrote in message
...
Hi, I used someone else's answer below to write code to find something in
a
call and when it finds the character it will insert a blank row. But, I
have
this sheet linked to another sheet where I also want the blank row to
show.
It doesn't, it just skips the blank row and jumps to the next line. Any
idea
how to insert a row and have it push the blank to the linked sheet?

Thanks,
John




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
Cannot insert worksheet in exel - not available in insert menu pedro39 Excel Worksheet Functions 1 July 24th 08 12:09 PM
Insert new Worksheet with name, and insert the sheet into itsalphabetical / numerical location S Davis Excel Programming 0 May 12th 08 07:13 PM
insert row / insert column command buttons fairgreen Excel Worksheet Functions 1 October 29th 07 02:41 PM
Macro to insert copy and insert formulas only to next blank row bob Excel Programming 0 June 30th 06 12:02 PM
Insert cell/format/text/fontsize and auto insert into header? Unfurltheflag Excel Programming 2 November 3rd 04 05:39 PM


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