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

I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default "rows" syntax

Hi
one way:
Range(Rows(a),rows(b)).select

--
Regards
Frank Kabel
Frankfurt, Germany

Claude wrote:
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default "rows" syntax

Thanks Frank, this is what I was looking for...

-----Original Message-----
Hi
one way:
Range(Rows(a),rows(b)).select

--
Regards
Frank Kabel
Frankfurt, Germany

Claude wrote:
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default "rows" syntax

The following selects rows 1 and 2:

Sub Row_Select()

Rows("1:2").Select

End Sub


--
Michael J. Malinsky


"Claude" wrote in message
...
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default "rows" syntax

Hi Claude,

rows("1:5").select


if a and b are variables then

rows(a & ":" & b).Select

--

HTH

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

"Claude" wrote in message
...
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!





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
correct syntax for nesting "if", "and", and "vlookup"....if possib Christine Excel Worksheet Functions 4 January 2nd 09 10:43 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
syntax for "IF" commend to check for multiple empty cells bf comma Chris Excel Worksheet Functions 4 September 3rd 07 12:02 PM
Syntax to "OR" 3 "ISERROR" conditions Mike K Excel Worksheet Functions 6 July 22nd 06 04:18 PM
what is syntax for if(between range of dates,"Q1","Q2")? TLB Excel Worksheet Functions 3 December 6th 05 05:19 PM


All times are GMT +1. The time now is 12:29 PM.

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"