×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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

Jobs

spreadsheet into excel

spreadsheet into excel

spreadsheet into excel

(OP)
I haven't worked with VBA for a while. I'm trying to write a code that reads a list of numbers from the spreadsheet and average those numbers at every three intervals. Could anyone give me an idea as to how to read the numbers into VBA thanks

RE: spreadsheet into excel

In the worksheet, assign a "name" to the full extent of the list (Insert / Name / Define).  Let that name be MyRange.

In the VBE, you can now reference any element of that range using the syntax
Range("MyRange")(RowNumber,ColumnNumber)
You can establish the size of the Range with
Range("MyRange").Rows.Count
and
Range("MyRange").Columns.Count

That should be enough to get you started.

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!


Resources