+ Reply to Thread
Results 1 to 9 of 9

Is there a way to paste values to a certain area of text and make it repetitive?

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    17

    Is there a way to paste values to a certain area of text and make it repetitive?

    Hello everyone!

    I want to know if below requirement is possible? Is yes, can you help providing solution.

    I have attached an excel sheet for example. There is a list of email address in sheet 1.

    I want the email address to be pasted in the red highlighted area of the html code in sheet 2. The process will be repetitive as the html code(yellow highlighted) should be pasted repeatedly with the email address updated in the red highlighted area.

    Let me know if it's not clear. Hoping for a solution.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    Hi,

    Is the email address in sheet 2 always the 3rd item in each block and does the block always comprise 10 values?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    B4
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    ..further to my last post and assuming the answer is Yes to both questions then either VBA


    Please Login or Register  to view this content.
    Or a formula in C2 on Sheet2 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    Hi Sere, see if this code works for you. I'm getting the desired result, but my code might not be optimized or best one.

    Solutions offered by Richard and nflsales is really great. But I think they missed the email ID which is repeating at 7th item of the block.
    Attached Files Attached Files
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    Hi

    Does the B8 text include the characters "[email protected]" (or perhaps some other text), or does it simply end with the double quotes and that the address needs to be slotted between them?

    e.g.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-23-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    Hi Everyone,

    Thanks for your promt help! Sorry for delay in reply.

    I have a change in requirement.

    In sheet 2, basically just column C AND Column G should be updated with the email addresses in Sheet 1. Also the number against the email address should be updated.

    I have highlighted in red and yellow.

    @Richard, I am not sure of the question you asked lately.
    @CodeSlizer, You have exactly done what I want, but I realized that I missed to update the numbers in the html code.
    @nflsaless, thanks

    Thanks in advance
    Attached Files Attached Files

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    Quote Originally Posted by sere View Post
    Hi Everyone,

    Thanks for your promt help! Sorry for delay in reply.



    @Richard, I am not sure of the question you asked lately.
    I was asking whether the characters '[email protected]' actually exist or whether you are just telling is where the email address should be placed as an example. It's relevant since in one case we can simply look for those characters and replace them.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Is there a way to paste values to a certain area of text and make it repetitive?

    Quote Originally Posted by sere View Post
    Hi Everyone,

    Thanks for your promt help! Sorry for delay in reply.

    I have a change in requirement.

    Also the number against the email address should be updated.
    What does this mean in practice? I'm, presuming, but not certain that you are referring to the numbers in sheet1 column A, but what does 'updated' mean and where does any update take effect. And why is there no number in A2?

+ 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. Replies: 3
    Last Post: 02-23-2015, 06:51 AM
  2. [SOLVED] Macro to search for text and paste data in other area
    By andyman3 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-08-2014, 09:01 AM
  3. how to make a list to avoid repetitive texts
    By Elainefish in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2013, 08:37 AM
  4. Text in Values Area!?
    By gregg141 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-01-2012, 05:29 AM
  5. How to make systematic repetitive macro shorter?
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-05-2011, 01:22 PM
  6. Make repetitive IF formula more concise?
    By leaning in forum Excel General
    Replies: 7
    Last Post: 03-18-2011, 05:48 AM
  7. Inster Function (fx) to copy paste values for an area
    By Harlort in forum Excel General
    Replies: 1
    Last Post: 09-13-2010, 05:05 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