#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default macros!!

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default macros!!

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).

--
Regards,
Tom Ogilvy


"Sarah_Lecturer" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default macros!!

You are correct Tom - of course!!!

Thanks very much - great help!

Sarah xx

"Tom Ogilvy" wrote:

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).

--
Regards,
Tom Ogilvy


"Sarah_Lecturer" wrote:

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

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
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM
convert lotus 123w macros to excel macros rpiescik[_2_] Excel Programming 1 September 19th 04 12:41 PM
convert lotus 123w macros to excel macros rpiescik Excel Programming 1 September 18th 04 01:35 PM
Open workbook-macros enabled, opening another with macros George J Excel Programming 5 September 17th 04 02:07 PM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"