Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Basic excel parametric sweep

Basic excel parametric sweep

Basic excel parametric sweep

Hello colleagues

I have a range of cells with input data. For each of it i want to put corresponding value into a calculations sheet and store the result into new range - how to do that with VBA ?

thanx and kind regards

RE: Basic excel parametric sweep

If your target range and source range are the same shape and size you could use named ranges:

Sub CopyData()
Range("TargetRangeName").Value = Range("SourceRangeName").Value
End Sub

If you want to do something more complicated, can you provide more details.

Doug Jenkins
Interactive Design Services

RE: Basic excel parametric sweep

...its like i have a sheet with complicated calculations of an angle. i want to have 100 increment input and see (and store)the result position...

RE: Basic excel parametric sweep

What happen in vagueness, stays in vagueness.

You haven't helped yourself with your statements. Can you upload your workbook or at least post an example that illustrates your problem?


glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Basic excel parametric sweep

The OP's requirements are a bit vague, but on my reading of them I fully agree with MintJulep that the TABLE feature in Excel is exactly what is required.  Several years ago I was asked by my employers to give a series of lunchtime talks on some of Excel's powerful but lesser-known features, and this was one of them.  I attach the example I used as part of my talk.

RE: Basic excel parametric sweep

Thank you Denial. Thanks to your post I have finally found where the Goal Seek function has been moved to in the new "Office" bar system. I still use the old keyboard shortcut of Alt + t then g. Haha, I've been doing this since Excel 2007 came out, and now I finally know.

RE: Basic excel parametric sweep

And thankyou TomBarsh for the shortcut :). For some reason I've always gone via the Data tab, which is annoying when you want something on the Home tab.

I agree that the Data Table feature is probably the easiest option, but another way to go if you are happy with VBA is to create a User Defined Function which is entered as an array formula. That can then return an array of any required size.

As Skip said, an example workbook showing what you have so far would be helpful.

Doug Jenkins
Interactive Design Services

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close