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: 14
Default Help with selecting a range of cells

Thank you all for the suggestions, it no longer ceases to amaze me how may
different ways there are to do the same thing. Your help is very much
appreciated.

Regards
Mick

"Mick" wrote in message
...
This is just a small part of my macro, I do hope the eagle eyed amongst
you can spot my mistake, all I want to do is select a range of cells in a
row and copy them?

I don't want to specify the range of cells by naming the rows/columns as I
need to use the code elsewhere in my macro i.e ("B5:J5")

Sub CopyRowAndAddAsNewRow()
Dim StartCell As String
Dim EndCell As String
Range("A1").Select
ActiveCell.Offset(4, 1).Select
StartCell = ActiveCell
EndCell = ActiveCell.Offset(0, 8)
Range("StartCell:EndCell").Select
Selection.Copy
End Sub

--
Kind Regards

Mick



 
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
Selecting a range of cells, how to ? Luc Excel Worksheet Functions 2 February 23rd 07 07:17 PM
Range selecting cells Alec H Excel Discussion (Misc queries) 2 March 14th 06 01:36 PM
Range - selecting multiple cells gr8guy Excel Programming 6 September 10th 04 05:21 AM
Selecting a Range of cells in VBA spacecityguy[_4_] Excel Programming 3 August 30th 04 04:14 PM
Selecting a range of cells Kevin Excel Programming 5 October 10th 03 03:03 PM


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

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

About Us

"It's about Microsoft Excel"