Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to start from varible row

Here is an example

p = 1
e = 5
Range(p & "a:b" & e).Select
if p is a variable row and u would want to start a
selection from colum 'a', microsoft will not accept the
above statement, only the 'b" & e' part works.

help, urgently please

thank u
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default how to start from varible row

Vimal,

Try

Range("A"&p&":B"&e).Select

--

HTH

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

"Vimal" wrote in message
...
Here is an example

p = 1
e = 5
Range(p & "a:b" & e).Select
if p is a variable row and u would want to start a
selection from colum 'a', microsoft will not accept the
above statement, only the 'b" & e' part works.

help, urgently please

thank u



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to start from varible row

Try this

Range("a" & p & ":b" & e).Select

You just had the column and row mixed up for the beginning
of the range.

KB

-----Original Message-----
Here is an example

p = 1
e = 5
Range(p & "a:b" & e).Select
if p is a variable row and u would want to start a
selection from colum 'a', microsoft will not accept the
above statement, only the 'b" & e' part works.

help, urgently please

thank u
.

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
same varible in formula jheiser57 Excel Worksheet Functions 0 June 21st 10 04:49 PM
Varible reference to worksheet name rjreilly Excel Discussion (Misc queries) 0 March 16th 09 08:47 PM
varible calculation kinsey New Users to Excel 7 September 30th 07 08:50 AM
varible table not spxer Excel Worksheet Functions 3 August 4th 06 05:13 PM
varible table spxer Excel Worksheet Functions 1 August 3rd 06 08:30 PM


All times are GMT +1. The time now is 08:18 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"