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: 3
Default Range syntax with variables

Can someone help me with the syntax for the following:

Dim Row As Integer
Dim Col As Integer

Range("A1:O45").Select
Selection.Copy

Row = 1

For x = 1 to 52
Row = Row + 48
Col = Row + 44
Range("A"Row:"O"Col).select
ActiveSheet.Paste
Next x

I need the syntax for the Range statement. I want to select the range
of rows for

A49 through O93
A97 through O141
A145 through O189
..
..
etc

 
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
Syntax for using variables in a cell formula to reference paths/fi colorado808 Excel Worksheet Functions 4 March 15th 07 03:41 AM
Syntax Help: Range variables (plucking data and pasting to 2nd sheet) Finny[_3_] Excel Programming 6 August 11th 06 10:55 PM
VARIABLES IN ROWS - Help on The Right Syntax sylink Excel Programming 2 December 21st 05 02:41 PM
Range syntax Dr.Schwartz Excel Programming 4 May 27th 05 01:34 PM
Range.Select Using Variables - need syntax gradientS Excel Discussion (Misc queries) 3 February 16th 05 12:45 PM


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