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: 6
Default selecting a named range based on a cell value

I am trying to select and copy a named range based on the value of a
particular cell.

For example

Range C1:C4 contain 4 cities in Australia and is named AUS_CITIES
Range D1:D4 contain 4 cities in the USA and is named USA_CITIES

The user enters his country in Cell A1: - lets say he enters
"Australia".

Based in the value of A1 (Australia) the macro should select the
range AUS_CITIES and copy this range to another worksheet.

Can anybody help me writing the VBA code for this ??

(the actual work that I need to do is a but more complex than this,
but the above example simplifies the issue at hand).

Many thanks for your help.

Wim

 
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
Hyperlink to Named Range Based On Cell Contents TKS_Mark Excel Worksheet Functions 1 January 9th 08 04:14 PM
Q: Named range based on cell value? Mark Excel Discussion (Misc queries) 3 November 13th 07 11:06 PM
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
Selecting and deleting named range based on cell value Rich Kniatt[_5_] Excel Programming 1 April 6th 06 08:04 PM


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