Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Value of Merged Cells
I am trying to get at the value of the merged cells E1:G1.
This code works fine: value_merge2 = Sheets("Sheet2").Range("E1").Value MsgBox value_merge1 This code just gives a blank: value_merge1 = Sheets("Sheet2").Range("A1").Offset(0, 4).Value MsgBox value_merge2 Is there a way to use something like the second set of code to still give the value of the merged cells? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Value of Merged Cells
Could it be that you got your variables mixed up.
value_merge2 is assigned, then you use msgbox value_merge2 And same thing with the next statement. ps. The code worked fine for me in my simple testing. MLT wrote: I am trying to get at the value of the merged cells E1:G1. This code works fine: value_merge2 = Sheets("Sheet2").Range("E1").Value MsgBox value_merge1 This code just gives a blank: value_merge1 = Sheets("Sheet2").Range("A1").Offset(0, 4).Value MsgBox value_merge2 Is there a way to use something like the second set of code to still give the value of the merged cells? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy paste non merged to merged cells | Excel Worksheet Functions | |||
How can I sort an Excel Doc containing merged & non-merged cells? | Excel Discussion (Misc queries) | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
how do i link merged cells to a merged cell in another worksheet. | Excel Worksheet Functions | |||
Sorting merged cellsHow do I sort merged cells not identically siz | Excel Worksheet Functions |