+ Reply to Thread
Results 1 to 5 of 5

How can I use excel VBA to paste part of a cell's text in the cell below?

  1. #1
    Registered User
    Join Date
    02-09-2013
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2010
    Posts
    13

    How can I use excel VBA to paste part of a cell's text in the cell below?

    I want all cells that contain the text "tonight's movie:" to have the text that comes after the "movie:" to be pasted in the cell below it. If you can help, I would really appreciate it. Thanks!

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

    Re: How can I use excel VBA to paste part of a cell's text in the cell below?

    Hi, smith310,

    starting for one cell you may proceed like this (no loop as I do not know if the next cells are always empty or need to be inserted, and then: only one cell or one row):
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    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

  3. #3
    Registered User
    Join Date
    02-09-2013
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How can I use excel VBA to paste part of a cell's text in the cell below?

    thanks for the quick reply! sorry, but neither of those macros worked. i am looking for a macro that will take the words to the right of "tonight's movie:" and put it in the cell directly below it. the cell directly below it will initially be empty. I want this to work for all cells in the sheet which contain the words "tonight's movie:"
    thank you for trying to help. you are awesome!

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

    Re: How can I use excel VBA to paste part of a cell's text in the cell below?

    Hi, smith310,

    ...but neither of those macros worked.
    Might it be that you either didnīt select the cell with this content or maybe itīs not values but formulas in the cells?

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-09-2013
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How can I use excel VBA to paste part of a cell's text in the cell below?

    It worked!! Thank you so much!

+ 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