+ Reply to Thread
Results 1 to 8 of 8

VBA if cell value = “no” then copy certains cells from same row to next blank row

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    earth
    MS-Off Ver
    Excel 2013
    Posts
    5

    Lightbulb VBA if cell value = “no” then copy certains cells from same row to next blank row

    I have a worksheet called 1B, i have a form that starts at A8, i would like that if the cell M8 contains the word "NO" then automatically copy A8 to B8 to next empty row and also copies the cells from C29 to O29 next to it, so on next empty row (row #30) will be a copy of A8 to B8 and C29 to O29. then for example, i have the same form but on row 10 so starts at A10 so also if M10 contains the word "no" then automatically copy A10 to B10 to next empty row and also copies the cells from C29 to O29 next to it, so on next empty row (row #31) will be a copy of A10 to B10 and C29 to O29. etc. thanks so much!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: VBA if cell value = “no” then copy certains cells from same row to next blank row

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    earth
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: VBA if cell value = “no” then copy certains cells from same row to next blank row

    here, thanks so much!
    Last edited by millen182; 12-08-2013 at 05:35 PM.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: VBA if cell value = “no” then copy certains cells from same row to next blank row

    Nice looking worksheet, however, it does not display an AFTER. It is important to understand what you are looking to do. As requested above, supply a sheet with data (dummy info) showing what the after results would look like. I've looked at your request and it just does not make any sense to me.

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    earth
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: VBA if cell value = “no” then copy certains cells from same row to next blank row

    Alansidman, first of all thanks for your reply, well i have uploaded again the work sheet, so what i need is for example i have data on the row 8, then if at M8 i write "no",then automatically copy A8 B8 and C8 to row 30 (to A30,B30,C30) then copy all starting from c29 and ending at o29 to c30 to o30

  6. #6
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: VBA if cell value = “no” then copy certains cells from same row to next blank row

    I hope my reply comes across as constructive, but I see what you're after and I don't advise it much.

    Reason being is you'll have to create a macro that is constantly running, checking each cell as you entering data. This can be quite stressful on your computer and may likely slow down excel altogether.

    Could I suggest maybe a button to activate the macro when required?

  7. #7
    Registered User
    Join Date
    12-03-2013
    Location
    earth
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: VBA if cell value = “no” then copy certains cells from same row to next blank row

    hi, yeah a button would be fine, then i would like for example if i also write "no" on m10 it does the same but with the row 10, and it goes to the next empty row,then copies a10,b10,c10, in this case to row 31 (a31,b31,c31) then copy all starting from c29 and ending at o29 to c31 to o31, and so, thanks!

  8. #8
    Registered User
    Join Date
    12-03-2013
    Location
    earth
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: VBA if cell value = “no” then copy certains cells from same row to next blank row

    is it possible? thank you for your replies!

+ 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. If a cell contains a specific value, then certains cells require to be totaled
    By unreal_event_horizon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2013, 04:46 AM
  2. [SOLVED] Find first non-blank cell after a group of blanks copy offset cells, find next blank, loop
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-21-2012, 06:11 AM
  3. [SOLVED] Copy cells to last non-blank cell
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2012, 07:10 PM
  4. Delete entire row if certains cells are blank
    By ZH1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2011, 01:42 PM
  5. Counting numbers (if) certains cells have txt
    By Hondoshaver in forum Excel General
    Replies: 4
    Last Post: 04-02-2010, 05:48 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