+ Reply to Thread
Results 1 to 13 of 13

Macro fill cell cells with text from another column

  1. #1
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    162

    Question Macro fill cell cells with text from another column

    Good day,

    My next problem consists in making macro to fill only containing "blank" with value from another column. So if the cell (example D7) contains text "blank" it has to be replaced with text from E7...

    For easier understanding find attached picture:

    capture.jpg

    Many thanks for help

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro fill cell cells with text from another column

    Hi forfiett,

    u need only for column D

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro fill cell cells with text from another column

    Hi forfiett,

    plz find the attached workbook and please have review and let me know is it meet ur requirement or not.
    Attached Files Attached Files

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro fill cell cells with text from another column

    Hi, forfiett,

    could be done using Autofilter, filter on either item blank or empty cells, mark the range, enter Formula to next cell in highlighted cell, hit CTRL + ENTER to enter formula into all cells.

    Any list should have a header and not start in Row1 (thatīs what I learned from Databases).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    162

    Question Re: Macro fill cell cells with text from another column

    Yess it is working but unfortunately not in my table ...
    in your workbook is working perfectly but when I apply macro to my bookwork is not working..why? what am I missing??

    pls find attached my workbook (my table)

    is possible to apply these macro only for columns E and F?

    BOOK1.xlsm
    Last edited by forfiett; 12-16-2012 at 08:06 AM.

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro fill cell cells with text from another column

    Hi forfielt,

    If u satisfied with the solution then please mark this thread as solved.

  7. #7
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    162

    Re: Macro fill cell cells with text from another column

    Quote Originally Posted by HaHoBe View Post
    Hi, forfiett,

    could be done using Autofilter, filter on either item blank or empty cells, mark the range, enter Formula to next cell in highlighted cell, hit CTRL + ENTER to enter formula into all cells.

    Any list should have a header and not start in Row1 (thatīs what I learned from Databases).

    Ciao,
    Holger
    i know these option but my workbook is intended for a wast range of people with poor excel knowledge and it would be too hard to teach all of them.

  8. #8
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro fill cell cells with text from another column

    now check it out i hv updated
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    162

    Re: Macro fill cell cells with text from another column

    Thanks for quick reply. I will check now and reply

  10. #10
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    162

    Re: Macro fill cell cells with text from another column

    I don't know what have you done but it is working
    I will try different times and reply if any error occurs.

    Many thanks for your help

  11. #11
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro fill cell cells with text from another column

    Good, please mark this thread as solve don't forget.

  12. #12
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Macro fill cell cells with text from another column

    steps to mark thread as solved

    goto 1st post - click on thread tool option - then click on "Mark this thread as solved".

  13. #13
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    162

    Re: Macro fill cell cells with text from another column

    Marked as solved :D

+ 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