Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need to insert formulas into certain cells when row inserted

Dim vArr as variant, j as long, i as long
varr = Array(1,2,3,6,9,12)
j = 1
for i = lbound(varr) to ubound(varr)
cells(6,i).Formula = "=Lower(Text($L6+" & varr(i) & ",""mmm""))"
Next


--
Regards,
Tom Ogilvy



"Jason" wrote in message
...
I have a spread sheet that I have an active x control, but need to insert

formulas into columns N:S when I insert a new row. The formulas would be in
order from N to S as follow. I am new so I apologize, but I really need this
written. Thanks.
with N

=CHOOSE(MONTH($L6+1,"jan","feb","mar","apr","may", "jun","jul","aug","sep","o
ct","nov","dec","jan","feb","mar","apr","may","jun ","jul","aug","sep","oct",
"nov","dec")
with O

=CHOOSE(MONTH($L6)+2,"jan","feb","mar","apr","may" ,"jun","jul","aug","sep","
oct","nov","dec","jan","feb","mar","apr","may","ju n","jul","aug","sep","oct"
,"nov","dec")
with P

=CHOOSE(MONTH($L6)+3,"jan","feb","mar","apr","may" ,"jun","jul","aug","sep","
oct","nov","dec","jan","feb","mar","apr","may","ju n","jul","aug","sep","oct"
,"nov","dec")
with Q

=CHOOSE(MONTH($L6)+6,"jan","feb","mar","apr","may" ,"jun","jul","aug","sep","
oct","nov","dec","jan","feb","mar","apr","may","ju n","jul","aug","sep","oct"
,"nov","dec")
with R

=CHOOSE(MONTH($L6)+9,"jan","feb","mar","apr","may" ,"jun","jul","aug","sep","
oct","nov","dec","jan","feb","mar","apr","may","ju n","jul","aug","sep","oct"
,"nov","dec")
with S

=CHOOSE(MONTH($L6)+12,"jan","feb","mar","apr","may ","jun","jul","aug","sep",
"oct","nov","dec","jan","feb","mar","apr","may","j un","jul","aug","sep","oct
","nov","dec")


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Need to insert formulas into certain cells when row inserted

Thanks, I will give it a try.
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
Insert rows and keep merged cells in the inserted row Buggelsgaard Excel Discussion (Misc queries) 1 August 27th 08 06:33 PM
automatically insert formula when new rows are inserted BLUEJAY Excel Worksheet Functions 0 April 27th 06 10:28 AM
Inserted Row has no formulas in it Lee Bowman Excel Discussion (Misc queries) 2 November 8th 05 08:54 PM
Inserted Row has no formulas in it Lee Bowman Excel Discussion (Misc queries) 1 November 8th 05 07:50 PM
Inserted row has no formulas Lee Bowman Excel Discussion (Misc queries) 0 November 8th 03 04:58 PM


All times are GMT +1. The time now is 03:07 AM.

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"