+ Reply to Thread
Results 1 to 4 of 4

Thread: Copy from one worksheet to another

  1. #1
    Registered User
    Join Date
    08-03-2011
    Location
    Norwich
    MS-Off Ver
    Excel 2003
    Posts
    12

    Copy from one worksheet to another

    Hi all

    I am struggling with this an was wondering if anyone had a quick example.

    Using vba, I want to select cell a1 & f7 from sheet1 and copy to the next blank row in sheet2?

    Excel 2010

  2. #2
    Registered User
    Join Date
    08-03-2011
    Location
    Norwich
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Copy from one worksheet to another

    Or could someone start me with just copying cell a1 and b1?

  3. #3
    Forum Moderator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4,384

    Re: Copy from one worksheet to another

    Where should F7 be copied? In B2 of sheet2?
    Cheers,
    Arlette

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,226

    Re: Copy from one worksheet to another

    A common process, something like this should get you going:
    Sub ArchiveData()
    Dim NR As Long
    
        With Sheets("Sheet2")
            NR = .Range("A" & .Rows.count).End(xlUp).Row + 1
            .Range("A" & NR).Value = Sheets("Sheet1").Range("A1").Value
            .Range("B" & NR).Value = Sheets("Sheet1").Range("F7").Value
        End With
    
    End Sub
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0