?
Solved

VBA Excel 2000 - Range selection with Cells

Posted on 2011-02-22
2
Medium Priority
?
377 Views
Last Modified: 2012-05-11
Dear Experts,

I am searching an alternative for this simple row in VBA so selecting a certain range

Range("A11:G18").Select

Could be done somehow this with applying Cells?

So for example the Cells(11, 1).Select selects the A11, but could be such applied to selecting an area until Cells(11,7) ?

thanks,
0
Comment
Question by:csehz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
jo_m earned 2000 total points
ID: 34951630

hello there

 if you are  starting at A1  then you could use

Range("A1").offset(11,7).select

 this will select all from the start cell Address to your final cell address


 I hope this is what you are looking for

tx

jo
0
 
LVL 1

Author Comment

by:csehz
ID: 34951683
Jo thanks yes you are right, I could do it with offset.

Basically I would like to put variable like offset(11," & Something & ").
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question