Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to get the value of a meged cell
Hi,
How to get the value of a nerge cell when refering to a address within the merged Cell. Exemple: Cells B1 - E1 are merged. In a macro I refer to cell D1 and I would like to have the value of the merged cell, which in fact is B1.value (D1.value is empty) nde |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to get the value of a meged cell
You answered your own question he
"nde" wrote: Cells B1 - E1 are merged. In a macro I refer to cell D1 and I would like to have the value of the merged cell, which in fact is **B1.value** (D1.value is empty) |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to get the value of a meged cell
Not exactly, look at Dick's answer, this is what I was looking for.
nde "Wood Grafing" wrote: You answered your own question he "nde" wrote: Cells B1 - E1 are merged. In a macro I refer to cell D1 and I would like to have the value of the merged cell, which in fact is **B1.value** (D1.value is empty) |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to get the value of a meged cell
On Thu, 8 Mar 2007 12:28:34 -0800, nde
wrote: Hi, How to get the value of a nerge cell when refering to a address within the merged Cell. Exemple: Cells B1 - E1 are merged. In a macro I refer to cell D1 and I would like to have the value of the merged cell, which in fact is B1.value (D1.value is empty) range("D1").MergeArea.Cells(1).value -- Dick Kusleika Microsoft MVP-Excel http://www.dailydoseofexcel.com |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to get the value of a meged cell
Thanks,
This is what I was looking for ! nde "Dick Kusleika" wrote: On Thu, 8 Mar 2007 12:28:34 -0800, nde wrote: Hi, How to get the value of a nerge cell when refering to a address within the merged Cell. Exemple: Cells B1 - E1 are merged. In a macro I refer to cell D1 and I would like to have the value of the merged cell, which in fact is B1.value (D1.value is empty) range("D1").MergeArea.Cells(1).value -- Dick Kusleika Microsoft MVP-Excel http://www.dailydoseofexcel.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
Meged Cells and Wrap Text | Excel Discussion (Misc queries) | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) |