Results 1 to 4 of 4

Thread: How to export column from one sheet to another sheet ?

  1. #1
    Join Date
    Jan 2009
    Posts
    150

    How to export column from one sheet to another sheet ?

    Hi friends,

    I am having an issue while, i am creating an excel sheet.I need to have copy one column from one sheet and to another.Can anyone tell me what steps i need to follow to do this.

    I would be very thankful to that person.

    PC Configuration

    Intel Dual core 2.66 Ghz
    915 MSI Motherboard with Intel chipset
    512 mb RAM
    80gb HDD

  2. #2
    Join Date
    Dec 2008
    Posts
    79

    Re: How to export column from one sheet to another sheet ?

    Sure i will help you out with this try to put this code it will work for you.

    Code:
    Private Sub cmdTournament_Click() 
         
        Dim s As  Range, i As Variant, t As Range, w As Range, _ 
        cc As Range, c As Range, w2 As Range, j As Integer, Val As Integer 
        Val = Sheet3.Range("Tournament").Value 
        Set s = Sheet4.Range("Scores") 
        Set t = Sheet3.Range("Table") 
        Set w = t.Cells(1, 1).End(xlToRight).Offset(0, 1) 'first empty week
        Set w2 = t.Cells(1, 1).Offset(0, 31).End(xlToRight).Offset(0, Val) 
         
        Application.Calculation = xlManual 'turn off calculations
         
        For Each cc In s 
            For j = -1 To 4  Step 5 
                Set c = cc.Offset(0, j) 
                i = Application.Match(c.Offset(0, -3), t, 0) 'get player position
                If IsError(i) Then 
                     MsgBox "Cannot locate " & c.Offset(0, -3) & " in the table." 
                Else 
                    w2.Cells(i, 1).Value = c 
                End If 
            Next j 
        Next cc 
        w2.Range("A1:A" & t.Rows.Count).Replace What:="", Replacement:="DNP", LookAt:=xlWhole, _ 
        SearchOrder:=xlByRows, MatchCase:=False 
        Application.Calculation = xlAutomatic 'turn on calculations
         
    End Sub

  3. #3
    Join Date
    Jan 2009
    Posts
    150

    Re: How to export column from one sheet to another sheet ?

    Thanks for our reply,but i don't know how to use by coding is there any formula type which i can use it very easily.

    PC Configuration

    Intel Dual core 2.66 Ghz
    915 MSI Motherboard with Intel chipset
    512 mb RAM
    80gb HDD

  4. #4
    Join Date
    Jan 2008
    Posts
    3,755

    Re: How to export column from one sheet to another sheet ?

    try to put the following formula, placed in any cell in Workbook 2 will link it to Workbook 1, Sheet 1, cell A1:

    =[Book1]Sheet1!$A$1

    You need to replace the following things with your own:-

    • Book1=The actual name of your workbook
    • Sheet1=The name of the sheet,
    • $A$1=The actual cell you want to link to.

Similar Threads

  1. Replies: 2
    Last Post: 23-02-2012, 02:59 PM
  2. how to copy data from sheet 1 to sheet 2 using macro
    By Messenger in forum Windows Software
    Replies: 3
    Last Post: 26-10-2010, 06:28 AM
  3. EXCEL export to tekst or sheet
    By Ingmar1979 in forum Windows Software
    Replies: 1
    Last Post: 29-06-2009, 08:03 PM
  4. Export Excel 2003 sheet in csv Format
    By BADRU in forum Windows Software
    Replies: 3
    Last Post: 06-04-2009, 10:23 PM
  5. How to Export a table from a PDF File into an Excel Sheet
    By Computer_Freak in forum Tips & Tweaks
    Replies: 1
    Last Post: 05-02-2009, 10:51 AM

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
  •  
Page generated in 1,714,305,499.29443 seconds with 17 queries