ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert Value into cell automatically when new rows are created/inserted (https://www.excelbanter.com/excel-programming/445748-insert-value-into-cell-automatically-when-new-rows-created-inserted.html)

magmike[_2_]

Insert Value into cell automatically when new rows are created/inserted
 
The value in all cells in column D is as follows:

=IF($D6="","",RIGHT($D6,6))

However, if I insert a row anywhere, I have to copy to formula from
above or below. Is there any coding I can do below to ensure that
anytime a row is inserted that the formula is copied into the new D
Column cell?

Thanks in advance for your help,

magmike

GS[_2_]

Insert Value into cell automatically when new rows are created/inserted
 
magmike pretended :
The value in all cells in column D is as follows:

=IF($D6="","",RIGHT($D6,6))

However, if I insert a row anywhere, I have to copy to formula from
above or below. Is there any coding I can do below to ensure that
anytime a row is inserted that the formula is copied into the new D
Column cell?

Thanks in advance for your help,

magmike


You could put a 'template' row containing all formulas/formatting at
the top and use a macro to insert it where you want. This would be
considered a "program row" and so could be hidden...

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com