+ Reply to Thread
Results 1 to 8 of 8

Help moving data (and more) with a Macro

  1. #1
    Registered User
    Join Date
    07-03-2025
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Help moving data (and more) with a Macro

    Hello all,
    I am trying to create a button in a spreadsheet that moves data from one cell to another when clicked. In addition to moving the data, I would like to have the date that the data was moved added to another cell in the row. I have successfully accomplished this on the attached spreadsheet. What I would like to do but cant figure out is to copy this button feature to the next row without having to recreate it. I tried highlighting the cells I want to copy the formatting on and dragged it to the cells below... this does copy the formatting and the button to the rows that were included in the dragging. However, the buttons that are created are still moving data from the initial row, not the row that they reside on (hope this makes sense). Ideally, clicking on the button would, as an example, move data from cell A3 to cell C3, insert the date in cell D3 AND create in row 4 the same formatting from row 3 with a button that would move the data from A4 to C4 and insert a date in D4.
    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,046

    Re: Help moving data (and more) with a Macro

    Why not move the button away from the row and have it just move the value from the selected cell. i.e. one button rather than a button per row?

    BSB

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,046

    Re: Help moving data (and more) with a Macro

    Like this:
    Please Login or Register  to view this content.
    BSB

  4. #4
    Registered User
    Join Date
    07-03-2025
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Help moving data (and more) with a Macro

    That would work for me... but I am unsure how to achieve that. Using the record Macro feature will only make changes based on the cell selected while recording the macro, not on any given selected cell thereafter. Or at least thats how I understand it...

  5. #5
    Registered User
    Join Date
    07-03-2025
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Help moving data (and more) with a Macro

    You are too fast!!! lol, I will give that a shot. Thank you!

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,046

    Re: Help moving data (and more) with a Macro

    Fingers crossed it works for you

    BSB

  7. #7
    Registered User
    Join Date
    07-03-2025
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Help moving data (and more) with a Macro

    BSB,
    Many thanks!

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,046

    Re: Help moving data (and more) with a Macro

    Happy to help

    BSB

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA/Macro moving and filtering Data
    By Benthebookie in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-14-2022, 11:02 AM
  2. moving data from one sheet to another via macro ?
    By 19jaguar75 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2019, 09:43 PM
  3. [SOLVED] Moving non-blanks of data - macro
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2013, 02:12 PM
  4. Moving data macro
    By mattmurdock in forum Excel General
    Replies: 1
    Last Post: 07-20-2012, 02:45 PM
  5. Macro for moving data sorted
    By joseharish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2009, 07:21 AM
  6. Macro for Moving Data
    By Hawkmoon in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-10-2007, 01:04 AM
  7. Macro -Moving data from one sheet to another
    By Seanzies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-03-2006, 11:40 PM

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