LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using variable to select rows

What is wrong with this macro? I'm trying to use variable to select rows but
when I execute it I get type mismatch error.

Sub Test()
Dim start As String
Dim end As String
start = 1
end = 2
Rows("start:end").Select
End Sub

In this case it should select rows 1 and 2.
 
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
Select a Range Through a Variable GoFigure[_9_] Excel Programming 3 December 6th 05 01:02 PM
Select Sheet - Variable al007 Excel Programming 1 November 14th 05 11:54 AM
worksheet select using variable Kryer Excel Programming 3 November 11th 05 12:17 AM
Select rows using a variable jnasr00[_2_] Excel Programming 1 November 4th 05 04:58 AM
select last 3 rows of variable length coloumn in excel 2003? jay Excel Programming 1 September 4th 05 07:20 PM


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