Consulting

Results 1 to 5 of 5

Thread: vba copy

  1. #1
    VBAX Contributor
    Joined
    Jun 2008
    Posts
    169
    Location

    vba copy

    Dear all


    Really needs help with my problems,
    with sheet1 range " HI" copy to sheet2 column " A" at last row to down & ended count by column " B,

    can some one help the code, pleased
    your help I hightly appreciate,
    Last edited by KK1966; 02-09-2009 at 02:23 AM.

  2. #2
    Knowledge Base Approver VBAX Master Oorang's Avatar
    Joined
    Jan 2007
    Posts
    1,135
    Location
    [VBA]Sheet1.Range("H1").Copy sheet2.Cells(sheet2.UsedRange.Rows.Count+sheet2.UsedRange.Row,2).End(xlup)[/VBA]
    Cordially,
    Aaron



    Keep Our Board Clean!
    • Please Mark your thread "Solved" if you get an acceptable response (under thread tools).
    • Enclose your code in VBA tags then it will be formatted as per the VBIDE to improve readability.

  3. #3
    VBAX Contributor
    Joined
    Jun 2008
    Posts
    169
    Location
    Hi, Oorang

    Thanks the reply, actually I wanted the code can paste at column "A to down and ended base on column "B last values,


    sorry about to made you troubles and confuse.


    can you help me again

  4. #4
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,198
    Location
    [VBA]Sheet2.Range("A" & Sheet2.Range("B" & Rows.Count).End(xlUp).Row + 1).Value = _
    Sheet1.Range("H1").Value[/VBA]

    Something like this maybe?
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved
    Click here for a guide on how to upload a file with your post

    Excel 365, Version 2403, Build 17425.20146

  5. #5
    VBAX Contributor
    Joined
    Jun 2008
    Posts
    169
    Location
    Daer Georiboy

    Thanks you help, can the code paste the value from COL "A last cell to dwom,

    Sample:

    COL A" last row at A18, and COL B" last Row at B50, can the code paste all values from A18 down to A50 ?

    thanks your help
    thanks

Posting Permissions

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