Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Cannot Change Part of a Merged Cell" When updating link using mac
I am trying to update links in an excel sheet that has links to other
workbooks, using a macro. I am getting an error messge Error 1004:"Cannot Change Part of a Merged Cell". But, if the link is updated manually using EditLinks this works fine. I am using office xp. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Cannot Change Part of a Merged Cell" When updating link using mac
Hello Madhava, When referencing merge cells, you must refer to the Leftmost or Upper Left Cell of the range. Referencing any other cell in the merged range will give you this error. EXAMPLE: Range("A1:J1") is merged. Range("A1").Value = "This is a test." This works. Range("B1").Value = "This is a test." This will generate the error eventhough cell "B1" is a part of the Range("A1:J1"). This happens because the system references the merged range only by the Leftmost ot Upper Left cell in the range. Check your code and formulas that address merged cells and be sure they are addressing the range correctly. -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=478919 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If part of a cell = "NVA" then insert "Norfolk" in return cell | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
How to find non-blank cell values "hidden" under merged regions? | Excel Discussion (Misc queries) | |||
"Cannot change part of an array!" | Excel Worksheet Functions |