Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Need Code to Populate Cell Range

In cell Sheet1 range M11 put
=OFFSET(Sheet2!E10,MATCH(Sheet2!C11,
{"T1","T2","R1","R2","R3","R4"},0),0)

or substitute the array with the range used to populate
the ComboBox

Kevin Beckham

-----Original Message-----
A workbook has two sheets: Sheet1 and Sheet2

In Sheet1 I want to populate merged cell range M11:AK12

as follows:

If Sheet2, cell C11 = "T1", insert Sheet2!E11 data in

Sheet1 range M11
If Sheet2, cell C11 = "T2", insert Sheet2!E12 data in

Sheet1 range M11
If Sheet2, cell C11 = "R1", insert Sheet2!E13 data in

Sheet1 range M11
If Sheet2, cell C11 = "R2", insert Sheet2!E14 data in

Sheet1 range M11
If Sheet2, cell C11 = "R3", insert Sheet2!E15 data in

Sheet1 range M11
If Sheet2, cell C11 = "R4", insert Sheet2!E16 data in

Sheet1 range M11

As background, Sheet2!C11 is populated by a ComboBox

LinkedCell

What is the code to make this happen?

.

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
How to Delete blanks between a range and populate only the names inthe given range Yuvraj Excel Discussion (Misc queries) 2 November 4th 09 08:32 PM
From a Data Range DoubleClick on a cell to populate elsewhere KalliKay Excel Discussion (Misc queries) 1 May 6th 09 06:05 PM
Populate cell range lost and confused in excel-land[_2_] Excel Worksheet Functions 1 July 13th 08 07:07 AM
Use a code to populate a cell with a specific value braveT Excel Worksheet Functions 5 April 13th 07 10:02 PM
Run code from one worksheet to populate another. Majeed Excel Programming 2 December 24th 03 05:01 PM


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