PC Review


Reply
Thread Tools Rate Thread

Create formula using VBA

 
 
medirate
Guest
Posts: n/a
 
      7th Apr 2008
In worksheet One, starting with A3, I have 10 columns and 10 rows full of
number data. Using VBA, I would like to go to worksheet Two, column A, Row
3, and enter the following: Concatenate (One!A3," ",One!A4," ",One!A5) and
copy this formula (relatively) from A3 through A12.



Can someone tell me how this is done or point me in the right direction?



Thanks!


 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      7th Apr 2008
Worksheets("Two").Range("A3:A12").Formula = _
"=One!A3&"" ""&One!A4&"" ""&One!A5"

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"medirate" <(E-Mail Removed)> wrote in message
news:%233%(E-Mail Removed)...
> In worksheet One, starting with A3, I have 10 columns and 10 rows full of
> number data. Using VBA, I would like to go to worksheet Two, column A, Row
> 3, and enter the following: Concatenate (One!A3," ",One!A4," ",One!A5) and
> copy this formula (relatively) from A3 through A12.
>
>
>
> Can someone tell me how this is done or point me in the right direction?
>
>
>
> Thanks!
>
>



 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      7th Apr 2008
Maybe

Sub sonic()
Sheets("Sheet2").Range("A3").Formula = _
"=Sheet1!A3 &"" ""& Sheet1!A4 & "" ""&Sheet1!A5"
Sheets("Sheet2").Range("A3").AutoFill Destination:=Range("A3:A12")
End Sub

Mike

"medirate" wrote:

> In worksheet One, starting with A3, I have 10 columns and 10 rows full of
> number data. Using VBA, I would like to go to worksheet Two, column A, Row
> 3, and enter the following: Concatenate (One!A3," ",One!A4," ",One!A5) and
> copy this formula (relatively) from A3 through A12.
>
>
>
> Can someone tell me how this is done or point me in the right direction?
>
>
>
> Thanks!
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a formula by joining text and the value from a formula Jesper Audi Microsoft Excel Worksheet Functions 3 25th Feb 2010 04:07 PM
I am trying to create a formula Brockjr38 Microsoft Excel Worksheet Functions 1 10th Sep 2008 02:10 AM
How do I create a formula by percentage within a formula? =?Utf-8?B?TWlzcyBUZXhhcw==?= Microsoft Excel Worksheet Functions 1 27th Mar 2006 04:51 AM
need to create a formula to create a timesheet but haven't a clue =?Utf-8?B?QUh1cmQ=?= Microsoft Excel Misc 7 22nd Aug 2005 12:04 PM
Please help create a formula JuliaC Microsoft Excel Worksheet Functions 3 27th Oct 2004 11:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:20 PM.