LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using VBA to Insert Formula in Copied Sheet


Thanks Tom, it seems the easiest way is not always the most obvious ;)

Tom Ogilvy Wrote:
Range("j15:J34").Formula = "=c15*I15"

--
Regards,
Tom Ogilvy



"Rich Kniatt"
wrote
in message
...

This should be easy for the gurus out there.

I have a snippet of code that needs to contain something similar to
below but carry through J34. Is there a way to do this with one

line?

Range("j15").Formula = "=c15*I15"
Range("j16").Formula = "=c16*I16"
Range("j17").Formula = "=c17*I17"


--
Rich Kniatt

------------------------------------------------------------------------
Rich Kniatt's Profile:

http://www.excelforum.com/member.php...o&userid=19093
View this thread:

http://www.excelforum.com/showthread...hreadid=529834



--
Rich Kniatt
------------------------------------------------------------------------
Rich Kniatt's Profile: http://www.excelforum.com/member.php...o&userid=19093
View this thread: http://www.excelforum.com/showthread...hreadid=529834

 
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
Copied formula produces unexpected copied results Robert New Users to Excel 1 December 5th 08 04:11 PM
How to add formula calling up current workbook when sheet copied Smudge Excel Discussion (Misc queries) 6 September 7th 07 10:40 AM
insert copied row on a protected sheet Oakie Excel Discussion (Misc queries) 0 July 26th 06 05:57 PM
carrying over a column formula from one sheet to another copied sh Carl Excel Worksheet Functions 3 June 6th 06 01:31 AM
Date formula that adds 7 days to a cell when sheet is copied dkent Excel Worksheet Functions 1 April 3rd 06 03:59 PM


All times are GMT +1. The time now is 05:59 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"