+ Reply to Thread
Results 1 to 3 of 3

Copying one cell's content and pasting it in the same row and column in another sheet

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    1

    Copying one cell's content and pasting it in the same row and column in another sheet

    Hey guys,
    I hope you can help me with this. It has been a while since i have worked with VBA and I have problems with creating a macro that will remember the row and column of an activated cell in one sheet and paste it in the same row and column in a second sheet in the same file and then adding a comment. I would be very thankful if someone could give me some good tips.
    Here is what I have tried:


    Sub Paid_Klicken()
    '
    ' Paid_Klicken Makro
    '

    '
    Dim mycell As Range
    Set mycell = ActiveCell.Offset(rowOffset:=0, columnOffset:=0)

    ActiveCell.Copy
    Sheets("Paid").Select
    mycell.Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    mycell.AddComment



    End Sub

    Leonie

  2. #2
    Registered User
    Join Date
    01-30-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Copying one cell's content and pasting it in the same row and column in another sheet

    dim myrow as integer
    dim mycol as integer

    myrow = activecell.row
    mycol = activecell.column

    Sheets("Paid").Select
    Cells(myrow, mycol).value = "Your thingy"


    LowTech, but will work fine.....

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying one cell's content and pasting it in the same row and column in another sheet

    Don't know if this will help, but it copies the activecell to sheet2 in the same cell as the active cell.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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