+ Reply to Thread
Results 1 to 3 of 3

Macro to Copy and Paste Specific Text in Column A on the last line with Text in Column B?

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    Mexico
    MS-Off Ver
    Office 2016
    Posts
    40

    Macro to Copy and Paste Specific Text in Column A on the last line with Text in Column B?

    Hi,

    I would like to know a VBA code to copy the word 'Name' in Column A from A1 unti A'x', where x is the last row with text in Column B.

    In other words, if my Column B has 27 registries with text from B1 to B27, I want the macro to copy the word 'Name' in Column A from A1 to A27, however, if the number of rows are more or less in Column B, I want the code to know where is the limit to copy.


    Thanks in advance for your support,
    D2S

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Macro to Copy and Paste Specific Text in Column A on the last line with Text in Column

    try this,
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-18-2017
    Location
    Mexico
    MS-Off Ver
    Office 2016
    Posts
    40

    Re: Macro to Copy and Paste Specific Text in Column A on the last line with Text in Column

    Thank you it works.

+ 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. [SOLVED] VBA Macro to find text string in one column and replace specific text in another column if
    By bmahfood in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2017, 11:15 AM
  2. Replies: 3
    Last Post: 04-21-2016, 02:52 AM
  3. search column for text, copy and paste into new column
    By adammss in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2013, 07:12 PM
  4. [SOLVED] Need MACRO to copy the text in the cell left of first selected cells (a column), paste all
    By joobeng in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-16-2013, 06:42 AM
  5. [SOLVED] IF column = specific text then copy value from another cell along the same column
    By Lifeless in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2013, 04:15 PM
  6. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  7. Replies: 0
    Last Post: 09-18-2012, 11:47 AM

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