macros!!

S

Sarah_Lecturer

Hi,

Please can you help me to do the following

Have figure in E2 and F2

Want to do the following

Insert column between F&G
Multiply E2 by G2
Copy formula to bottom of table (this changes length)

Thanks

Sarah xx
 
T

Tom Ogilvy

Dim rng as Range
Column("G").Insert
set rng = Range(cells(2,"F"),Cells(2,"F").End(xldown))
rng.offset(0,1).Formula = "=E2*H2"

I assume when you say multiply E2 by G2, it is really H2 after inserting a
column Before column G (that column becomes the new G).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top