copy c range set by a variable in Excel macro

I want to copy the first two columns in a worksheet "Input" starting with cell A1 into a worksheet "Calculations" starting in cell A14 the range of which is set by a variable in "Calculations!A12" because length of the columns varies on the length of the imported data.
bobdeckAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

balajikumar75Commented:
Excel allows you to define "name" at excel application level. These names point to a range in excel sheet. Using excel menu, you can define a name to range of cells by clicking on "Insert" -> "Name"  -> "Define"

I can do same using macro something like this.
ActiveWorkbook.Names.Add Name:="rngAddresspaste", RefersToR1C1:= _
        "=Sheet2!R14C1"
In above example the name "rngAddresspaste" refers to cell starting "A14"

E.g to copy paste from Sheet1 to sheet 2.
*************************************
    Sheets("Sheet1").Select
    Range("A1:B2").Select
    Selection.Copy
    Sheets("Sheet2").Select
    'Define range in excel
    ActiveWorkbook.Names.Add Name:="rngAddresspaste", RefersToR1C1:= _
        "=Sheet2!R14C1"

    Range("rngAddresspaste").Select
    ActiveSheet.Paste
*************************************

Please let me know if you need more details


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
balajikumar75Commented:
Sure the above comments should have helped bobdeck. haven't heard since.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.