Consulting

Results 1 to 2 of 2

Thread: Basic Help: Copy value from one sheet to another

  1. #1
    VBAX Regular
    Joined
    Jun 2012
    Posts
    45
    Location

    Basic Help: Copy value from one sheet to another

    Can any one correct whats wrong with this code. I want to copy the last value in last cell of D column Sheet 2 to Sheet 1 cell B1.


    [VBA]

    Set rDest = Sheets(1).Range("B1")
    rDest.Value = Sheets(2).Range("D2").End(xlDown).Value

    [/VBA]

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,729
    Location
    What happens when you run it?

    Paul

Posting Permissions

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