PC Review


Reply
Thread Tools Rate Thread

Delete rows and refs

 
 
brownti via OfficeKB.com
Guest
Posts: n/a
 
      22nd May 2007
I am wondering if there is a macro that can be written that will delete a row
and also any reference to any cells in that row from froumulas on the sheet.
For example: A1=B1+B2+B3 i then delete row 2 and get A1=B1+#REF+B3, i would
like to get A1=B1+B3. Is something like this possible? Maybe when running
the delete row macro it would do a find and replace? Any thoughts? Thanks

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200705/1

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      22nd May 2007
look at DirectPrecedents property of the cell to be deleted before you delete
it. Loop through them and change the formula.

--
Regards,
Tom Ogilvy


"brownti via OfficeKB.com" wrote:

> I am wondering if there is a macro that can be written that will delete a row
> and also any reference to any cells in that row from froumulas on the sheet.
> For example: A1=B1+B2+B3 i then delete row 2 and get A1=B1+#REF+B3, i would
> like to get A1=B1+B3. Is something like this possible? Maybe when running
> the delete row macro it would do a find and replace? Any thoughts? Thanks
>
> --
> Message posted via OfficeKB.com
> http://www.officekb.com/Uwe/Forums.a...mming/200705/1
>
>

 
Reply With Quote
 
brownti via OfficeKB.com
Guest
Posts: n/a
 
      22nd May 2007
I am trying to streamline a process. I have a sheet with with rows that have
cells that contain formulas. Some of those rows get deleted while using the
sheet however there are a group of cells that refrence some of those cells.
i would like to be able to right click the row and instead of Delete Row it
would be Delete row and References and that would take care of the problem
for me. It would be a lot quicker than cycling through formulas and changing
them. Ideas?


Tom Ogilvy wrote:
>look at DirectPrecedents property of the cell to be deleted before you delete
>it. Loop through them and change the formula.
>
>> I am wondering if there is a macro that can be written that will delete a row
>> and also any reference to any cells in that row from froumulas on the sheet.
>> For example: A1=B1+B2+B3 i then delete row 2 and get A1=B1+#REF+B3, i would
>> like to get A1=B1+B3. Is something like this possible? Maybe when running
>> the delete row macro it would do a find and replace? Any thoughts? Thanks


--
Message posted via http://www.officekb.com

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      22nd May 2007
It certainly would.

(E-Mail Removed)

--
Regards,
Tom Ogilvy


"brownti via OfficeKB.com" wrote:

> I am trying to streamline a process. I have a sheet with with rows that have
> cells that contain formulas. Some of those rows get deleted while using the
> sheet however there are a group of cells that refrence some of those cells.
> i would like to be able to right click the row and instead of Delete Row it
> would be Delete row and References and that would take care of the problem
> for me. It would be a lot quicker than cycling through formulas and changing
> them. Ideas?
>
>
> Tom Ogilvy wrote:
> >look at DirectPrecedents property of the cell to be deleted before you delete
> >it. Loop through them and change the formula.
> >
> >> I am wondering if there is a macro that can be written that will delete a row
> >> and also any reference to any cells in that row from froumulas on the sheet.
> >> For example: A1=B1+B2+B3 i then delete row 2 and get A1=B1+#REF+B3, i would
> >> like to get A1=B1+B3. Is something like this possible? Maybe when running
> >> the delete row macro it would do a find and replace? Any thoughts? Thanks

>
> --
> Message posted via http://www.officekb.com
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy pasting Rows, but need to Delete any Shapes/Pictures that are within copied rows Corey Microsoft Excel Programming 2 1st Aug 2007 02:02 AM
auto-hide rows, cell format (# and @), update cell refs, shade cel =?Utf-8?B?TW8y?= Microsoft Excel Misc 0 17th Apr 2007 03:44 AM
How do I fix cell refs when adding rows =?Utf-8?B?RGF2ZSBM?= Microsoft Excel Misc 5 2nd Dec 2005 09:52 PM
update /delete external refs Paul Microsoft Excel Misc 1 27th Feb 2004 02:40 AM
Converting RC cell refs to cell range refs David Ralph Microsoft Excel Misc 2 15th Dec 2003 04:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:09 PM.