Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default "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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default "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
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
If part of a cell = "NVA" then insert "Norfolk" in return cell RNCKWMN Excel Worksheet Functions 4 June 13th 09 08:53 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
How to find non-blank cell values "hidden" under merged regions? david.karr Excel Discussion (Misc queries) 7 April 7th 07 11:35 PM
"Cannot change part of an array!" ExcelMonkey Excel Worksheet Functions 1 February 28th 07 10:01 PM


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