In VB macro how do I select range from active cell

  • Thread starter Thread starter spydor
  • Start date Start date
S

spydor

Hey guys and gals, Thanks for lookin at this problemmmmm???

When I am writing a macro using visual basic, how do I select a range
which includes 2 rows down and 8 rows across (selects the range not
just the single cell) from the currently selected/active cell then
copy it: All this starts from the cell the user starts from.
Example......

PuzzeledProgramer
 
Activecell.Resize(2,8).Select

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
When in VB Editor check out help on "resize"



Gord Dibben Excel MVP
 
Bob...

Sweeeeet!! This is a nice solution to "ShouldBeSimple" thing to find
with the Excel Help menus.

Sure Appreciate the Info.........

Spydor
 
Andrea's solution is very similar, it is just perhaps not so obvious that
Range("A1:H2") refers to 2 rows and 8 columns from the actrivcell, it does
not refer to the actual range A1:H2.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top