+ Reply to Thread
Results 1 to 10 of 10

I want to add new line below selected and copy texts from selected line to this new

  1. #1
    Registered User
    Join Date
    07-21-2015
    Location
    Delhi, India
    MS-Off Ver
    2010
    Posts
    21

    I want to add new line below selected and copy texts from selected line to this new

    Hi guys, i have a problem. I want to programme a button which after click will add new line below selected cell and will copy all text from this line to new just created line.

  2. #2
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: I want to add new line below selected and copy texts from selected line to this new

    Hi Warden,

    Usethe below code in the Commandbutton_Click

    Please Login or Register  to view this content.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want to add new line below selected and copy texts from selected line to this new

    Maybe:

    Please Login or Register  to view this content.
    Works on doubleclick of cells in the active row.

  4. #4
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: I want to add new line below selected and copy texts from selected line to this new

    Wow John, Thanks got some new code in my database.. thanks for it, it will surely help me in some or the other way

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want to add new line below selected and copy texts from selected line to this new

    @ Parth007 - Glad you can use it. Hope it helps warden792 as well.

  6. #6
    Registered User
    Join Date
    07-21-2015
    Location
    Delhi, India
    MS-Off Ver
    2010
    Posts
    21

    Re: I want to add new line below selected and copy texts from selected line to this new

    Hi guys, have u any idea for button which undo changes?

  7. #7
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: I want to add new line below selected and copy texts from selected line to this new

    hey Warden,

    You create a command button In sheet & paste the below code on its click..

    Please Login or Register  to view this content.
    May help

  8. #8
    Registered User
    Join Date
    07-21-2015
    Location
    Delhi, India
    MS-Off Ver
    2010
    Posts
    21

    Re: I want to add new line below selected and copy texts from selected line to this new

    Run-time error '1004':
    Method 'Undo' of object '_Application' failed

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: I want to add new line below selected and copy texts from selected line to this new

    Read remarks here:
    https://msdn.microsoft.com/en-us/lib.../ff838189.aspx
    Other strongly suggested reading is: http://www.excelforum.com/forum-rule...rum-rules.html (and do follow)
    Best Regards,

    Kaper

  10. #10
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: I want to add new line below selected and copy texts from selected line to this new

    PS. May be slightly off-topic, but strange how quickly you changed your location to "Delhi, India".
    Any comment on this???

+ 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] Multiple Line Texts to a single line??
    By mandukes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2014, 03:30 PM
  2. selected item from column to line
    By kuzna26 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-17-2014, 06:31 AM
  3. [SOLVED] Strange line above and below pages (Cannot be deleted or selected)
    By 1tane1 in forum Word Formatting & General
    Replies: 3
    Last Post: 08-24-2013, 11:21 PM
  4. Delete row source from selected line in ListBox
    By PinkMafia14 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-12-2013, 03:15 PM
  5. Border line to every selected row
    By yjmmay34 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2010, 08:50 PM
  6. Insert a line in chart and enter selected cells sum
    By BLRITCHIE in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2009, 08:28 PM
  7. Macro Help:selected line
    By Schnauzin254 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2006, 04:10 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