+ Reply to Thread
Results 1 to 3 of 3

Creating/Shifting and Copy/Pasting Text Macro

  1. #1
    Registered User
    Join Date
    09-27-2022
    Location
    Zagreb, Croatia
    MS-Off Ver
    Microsoft Office Excel 2016
    Posts
    2

    Creating/Shifting and Copy/Pasting Text Macro

    Hello dear excel forum and excel forum users!

    I need help with an excel VBA macro which I really want to create. The macro which I want to create should do following:

    1. Checks cells with more than 69 characters in it (I'm currently using "Conditional Formatting" option with this formula - "=Len(a1)>69" and I'm filling the cells in yellow color if the condition is TRUE.)

    2. After macro checks cells with more than 69 characters in them, it automatically inserts a new cell to the right (Right click>Insert>Shift cells to the right) and copies half text of the cell which was "full" (full in a sense that it had more than 69 characters in it) and pastes it into that newly created/shifted cell to the right.

    I'd also like to mention I'm using this for the entire workbook, not just for selected cells inside the workbook.

    That's basically it.
    A copy/paste macro while creating/shifting cells to the right!

    Thanks in advance to everyone who is willing to help!

    Best regards.
    Attached Files Attached Files
    Last edited by vidaman232; 09-27-2022 at 09:31 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Creating/Shifting and Copy/Pasting Text Macro

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    09-27-2022
    Location
    Zagreb, Croatia
    MS-Off Ver
    Microsoft Office Excel 2016
    Posts
    2

    Re: Creating/Shifting and Copy/Pasting Text Macro

    Thanks a lot for the suggestion of uploading a sample workbook.

    I uploaded one with the problem and a solution which I need written in it.

    Thank you in advance for your help.

    Best regards.
    Attached Files Attached Files
    Last edited by vidaman232; 09-27-2022 at 09:36 AM.

+ 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: 1
    Last Post: 03-08-2018, 07:13 AM
  2. input text instead of copy and pasting
    By bjbboats in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2016, 11:10 AM
  3. Copy & pasting Trimmed text?
    By JoshJ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-16-2014, 01:42 PM
  4. Replies: 3
    Last Post: 09-03-2013, 10:02 PM
  5. copy and pasting a foruma and shifting reference celsl
    By zippersweater in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2013, 01:40 PM
  6. Replies: 3
    Last Post: 10-10-2011, 02:52 PM
  7. Macro for pasting, deleting, and shifting data
    By reel004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2007, 06:33 PM

Tags for this Thread

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