Results 1 to 2 of 2

Copy value of merged cell to another cell.

Threaded View

  1. #1
    Registered User
    Join Date
    08-06-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Smile Copy value of merged cell to another cell.

    Hello,

    I created a automatic schedule (year, months, weekends and holidays) and I want to copy a value that is in merged cell (ex. G20) to another cell that must obtain that value via Excel Formula, our another way. For example, like in the picture, when I enter a value in cell G20 (A), I want it to automatically update the cell G13 (with A) and so on.

    Any help will be very appreciated.

    Schedule.JPG

    Upgrade

    Schedule-2.JPG

    I think I may been not very clear. Like I said, this schedule is automatic, so it must do everything automatically. For more clarity, if I join the code below, it "works" but it gives me in the cell the error =imtrange(Cells(i;u) - "#NAME?".

    For me, I have the problem in the "Formula" function, because I can't obtain the right value for the cell that link to the merged cell below. All cycle in the range works correctly for all days of the mouth.

    
    Application.EnableEvents = False
    
    For i = 1 To myRange.Rows.Count
        
        For j = 1 To myRange.Columns.Count
            If myRange.Cells(i, j).MergeCells = True Then
                myRange.Cells(0, 1).Select
            ElseIf IsEmpty(myRange.Cells(i, j)) Then
                myRange.Cells(i, j).Interior.ColorIndex = 3
                myRange.Cells(i, j).Select
                imtRange.Select
                
                myRange.Cells(i, j).Formula = "=ImtRange(Cells(i,u))" '-----> ????
            
            Else
                myRange.Cells(i, j).Interior.ColorIndex = 4
            End If
        Next j
        
        u = u + 1
    
    Next i
    
    Exit Sub



    Regard's
    FS
    Last edited by Francisco Sousa; 11-13-2015 at 07:31 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merged cell copy and paste
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2014, 08:57 AM
  2. Limit merged cell data; Place excess into next merged cell down
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 10:35 PM
  3. [SOLVED] what am i doing wrong?, VBA copy merged cell to single cell and back again
    By rmharrison in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2013, 06:45 PM
  4. [SOLVED] VB:ClearContents Error on Merged Cell - But I dont have Any Merged Cell
    By cychua in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-24-2013, 06:33 AM
  5. Copy from merged cell to merged cell
    By rgarber in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2010, 01:12 AM
  6. [SOLVED] Copy merged cell, paste as merged cell
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2009, 02:35 PM
  7. Replies: 3
    Last Post: 01-22-2006, 05:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1