Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Finding a named range based on cell value and copy/paste to same sheet?


Can anyone tell me either by way of a w/s function or VBA how to find a
named range and then paste that named range in to another sheet.......i
have a worksheet that has a list validated cell when i choose a name out
of that list and it appears in B1 i would like the matching named range
to be found and pasted in to B4:C21 on the same sheet, i tried a
combination of HLookup and Vlookup to no avail and i tried a varation
of =INDEX(xx,Match(x,xx)) but that didnt work right either as i was
trying to pick each cells data individually but in reality the named
range as a whole can be copied and pasted in to the range.

Any ideas?

Regards,

Simon


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=541264

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Finding a named range based on cell value and copy/paste to same sheet?


Hi all, i have managed the copying and pasting of the reference
range....i ws trying to be to clever for my own good!, but i have a new
problem, when i run the code below Excel goes through hundreds of
iterations for the one paste is there any way of only getting it to
copy paste once per change in B3?

Regards,
Simon

THE CODE BELOW IS ON THE SCORE CARD SHEET
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.Goto Reference:=Range("B3").Value
Selection.Copy
Sheets("score card").Select
Range("A27").Select
ActiveSheet.Paste
End Sub


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=541264

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
Copy data and paste to different sheet named on Group Prem Excel Discussion (Misc queries) 1 February 21st 08 02:56 PM
Copy from one Sheet and paste on another sheet based on condition Prem Excel Discussion (Misc queries) 2 December 24th 07 05:05 AM
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
copy and paste to another sheet based in cell color nat3ten Excel Programming 7 July 8th 05 11:14 PM


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