Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error rsp about merged cells being sized ? | New Users to Excel | |||
error message: merged cells must be same size | Excel Worksheet Functions | |||
Error €œThis operation requires the merged cells to be identically | Excel Programming | |||
Formula error in merged cells | Excel Worksheet Functions | |||
Error in sum function when using merged cells | Excel Discussion (Misc queries) |