Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Help with copying a range by selecting a cell.

Hi to all, new at this.
I am wanting to copy a range in a row from one worksheet to another by
selecting the cell in "A" eg.:
by clicking on a cell in worksheet 1 "A?", I can copy range A to F in
that row to worksheet 2 in the next available row.
please help
Thanks
Kezza

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default Help with copying a range by selecting a cell.

Hi Kezza

Sub copyRow()
Dim R As Range
On Error Resume Next
Set R = Application.InputBox("Click A cell:", _
"Will copy this row", Type:=8)
If R Is Nothing Then Exit Sub
On Error GoTo 0
Set R = R.Resize(1, 5)
R.copy Sheets(2).Cells(65000, 1).End(xlUp).Offset(1, 0)
End Sub

HTH. Best wishes Harald

"Kezza" skrev i melding
oups.com...
Hi to all, new at this.
I am wanting to copy a range in a row from one worksheet to another by
selecting the cell in "A" eg.:
by clicking on a cell in worksheet 1 "A?", I can copy range A to F in
that row to worksheet 2 in the next available row.
please help
Thanks
Kezza



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
Copying cell formatting when selecting from a list denspec Excel Discussion (Misc queries) 0 February 14th 07 01:57 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
selecting range and copying to new worksheet shark102 Excel Programming 7 October 20th 05 04:23 PM
Selecting and copying a dynamic range of cells EstherJ Excel Programming 2 August 11th 05 06:07 PM
Selecting & Copying a Changing Range DNewton[_3_] Excel Programming 2 May 3rd 04 03:44 PM


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