Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selection code

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

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Selection code

Try something like the following;

Range("6:206").Select




"sixfivebeastman "
wrote in message
...
What would be the proper format for writing a macro to select a

certain
range of rows (like 6:6 to 206:206)?
It keeps giving me the -Method 'Range' of object '_Global'

failed-
error.
Thanks!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Selection code

Rows("6:206").Select

--

HTH

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

"sixfivebeastman " wrote in
message ...
What would be the proper format for writing a macro to select a certain
range of rows (like 6:6 to 206:206)?
It keeps giving me the -Method 'Range' of object '_Global' failed-
error.
Thanks!


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Selection code

Here is one mo

rows(6).Resize(201).Select

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

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

--
Regards,
Tom Ogilvy

"sixfivebeastman " wrote in
message ...
What would be the proper format for writing a macro to select a certain
range of rows (like 6:6 to 206:206)?
It keeps giving me the -Method 'Range' of object '_Global' failed-
error.
Thanks!


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cell selection code NDBC Excel Discussion (Misc queries) 6 August 11th 09 06:39 AM
TIP: Dynamic chart selection without code Dermot Charts and Charting in Excel 0 August 11th 06 08:23 AM
Range selection code in a macro Floss Excel Programming 1 December 30th 03 01:05 AM
Help : Code for selection non-contiguous cells Majeed Excel Programming 1 November 24th 03 06:49 PM
Print Selection in Code Donna Brooks Excel Programming 2 July 25th 03 04:35 PM


All times are GMT +1. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"