LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default R1C1 Error with Merged Cells


I was using the below code to populate data from a combobox. It was
working great until I tried to use R1C1 to put data into a Merged cell
below(I guess Right 0.5) from the Master Reference Cell (Master is two
merged cells).

I was thinking that it would just be easier to Dim the String however I
couldn't get it to work in the bottom code Offset.

Does any one have an idea.


*** Works but misses target because I have merged cells ***

With ActiveSheet.Range("F105") ' Name

..Value = c.Offset(, 1) ' Name
..Offset(23, 1) = c.Offset(, 11) ' Province ***This missing the cell due
to merging***


****My Attempt at Code for Dim****

Dim provincelcb As String

provincelcb = ActiveSheet.Range("G128")

With ActiveSheet.Range("F105") ' Name

..Value = c.Offset(, 1) ' Name

..provincelcb = c.Offset(, 11) ' Province - I tried this however it
fails.


--
bobwilson
------------------------------------------------------------------------
bobwilson's Profile: http://www.excelforum.com/member.php...o&userid=33046
View this thread: http://www.excelforum.com/showthread...hreadid=529732

 
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
Error rsp about merged cells being sized ? Bubey[_2_] New Users to Excel 1 March 6th 07 02:16 AM
error message: merged cells must be same size Buckskin Excel Worksheet Functions 2 May 16th 06 03:35 PM
Error €œThis operation requires the merged cells to be identically ca1358 Excel Programming 3 December 2nd 05 04:51 PM
Formula error in merged cells librarynut Excel Worksheet Functions 1 September 15th 05 10:36 AM
Error in sum function when using merged cells librarynut Excel Discussion (Misc queries) 0 September 13th 05 07:19 AM


All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"