+ Reply to Thread
Results 1 to 5 of 5

insert the line values below on table of the sheet 1 from sheet 2

  1. #1
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    insert the line values below on table of the sheet 1 from sheet 2

    Hello
    It will be possible for someone to give me some help with the Macro Fill table.
    The result I want is outlined in sheet 2.

    thanks
    Attached Files Attached Files
    Last edited by Birnen; 08-02-2018 at 04:46 AM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: insert the line values below on table of the sheet 1 from sheet 2

    I think this does what you want.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi ! Try this ‼


    As a starter :

    PHP Code: 
    Sub Demo1()
                  
    Dim V(), WR&, C%, F%, L&
        
    With Arkusz2.[B1].CurrentRegion.Rows
            With 
    .Item("4:" & .Count)
                
    ReDim V(1 To Application.CountA(.Columns("A:C")), 1 To 5)
                
    = .Value
            End With
        End With
        
    For 1 To UBound(W)
            For 
    1 To 3
                
    If W(RC) > "" Then
                          F 
    4
                          L 
    1
                    V
    (L1) = W(RC)
                    
    V(L2) = W(RF)
                    
    V(L3) = W(R1)
                    
    V(L4) = W(R2)
                    
    V(L5) = W(R3)
                
    End If
            
    Next
        Next
        With Arkusz1
            
    .UsedRange.Offset(3).ClearContents
            
    .[B4:F4].Resize(L).Value V
        End With
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Another way …

    PHP Code: 
    Sub Demo2()
         
    Dim L&, R&, C%, F%
             
    3
             Application
    .ScreenUpdating False
             Arkusz1
    .UsedRange.Offset(3).ClearContents
        With Arkusz2
    .[B1].CurrentRegion.Rows
            
    For 4 To .Count
                
    For 1 To 3
                    
    If .Cells(RC).Value2 "" Then
                        F 
    4
                        L 
    1
                        Arkusz1
    .Cells(L2).Resize(, 5).Value2 Application.Index(.Item(R).Value2, , Array(CF123))
                    
    End If
                
    Next
            Next
        End With
             Application
    .ScreenUpdating True
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: insert the line values below on table of the sheet 1 from sheet 2


    Thanks for the rep' !

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. insert subject line from excel sheet
    By sahida9718 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-17-2015, 08:15 AM
  2. Replies: 6
    Last Post: 07-26-2015, 03:43 AM
  3. Replies: 3
    Last Post: 12-12-2014, 10:15 AM
  4. Copy the data from 1 sheet in vertical line to another sheet in horizontal line
    By Shermaine2010 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2014, 03:46 AM
  5. Copy Sheet / Create & Name New Sheet / Insert Before a Sheet / Paste Data
    By thinkspac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 02:27 PM
  6. Replies: 0
    Last Post: 07-25-2012, 09:59 AM
  7. Replies: 0
    Last Post: 08-24-2005, 07:41 AM

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