Selection code

  • Thread starter Thread starter sixfivebeastman
  • Start date Start date
S

sixfivebeastman

What would be the proper format for writing a macro to select a certai
range of rows (like 6:6 to 206:206)?
It keeps giving me the -Method 'Range' of object '_Global' failed-
error.
Thanks
 
Try something like the following;

Range("6:206").Select




"sixfivebeastman >"
 
Rows("6:206").Select

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Here is one more:

rows(6).Resize(201).Select

and another
Range("A6:A206").EntireRow.Select

and another:
Range(rows(6),rows(206)).Select
 

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

Similar Threads

Easy code, confounded by error 3
Trouble Setting Range 5
Print Code Help 5
Run-time error 1004 6
Sort by a Variable Range 2
Code error 1
Hiding Rows with Blank cells 5
Selecting cells 5

Back
Top