Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9236047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:11:44+00:00 2026-06-18T07:11:44+00:00

MS Excel 2010 or 2007 or any version for that matter when you copy

  • 0

MS Excel 2010 or 2007 or any version for that matter when you copy a cell(not selecting text from the cell) and pasting to any editor adds a line break and sends the cursor to next line. Its annoying to move up the cursor back to last line.

It doesnt look much work to get the cursor back to last line but if you have to keep doing this a lot of times as a programmer i feel really bad. Any suggestions if there is a setting in excel to stop this?

I tried looking online didnt find any thing and also looked up the options of excel, didnt find anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:11:45+00:00Added an answer on June 18, 2026 at 7:11 am

    You can create your own copy routine, that does not store the whole cell, but only its value in the clipboard:

    Sub OwnCopy()
        Dim DataObj As New MSForms.DataObject
        
        DataObj.SetText ActiveCell.Value 'depending what you want, you could also use .Formula here
        DataObj.PutInClipboard
    End Sub
    

    To be able to compile the macro, you need to include "Microsoft Forms 2.0 Object Library" as a reference (in the Visual Basic editor, go to Tools->References and browse %windir%\system32 for FM20.dll1).

    You can now either assign this macro to another shortcut (e.g. Ctrl–Shift–C) using the default run macro dialog – or even overwrite Ctrl–c by executing Application.OnKey "^c", "OwnCopy". However, I’d not recommend overwriting Ctrl–c as you’ll most likely want to use all the other information that usually is copied with it in any other case than pasting to an editor.

    To make this permanent, just store the macro in your Personal Workbook.

    In case you want a more sophisticated copy routine that can also handle multiple cells/selection areas, use this code:

    Sub OwnCopy2()
        Dim DataObj As New MSForms.DataObject
        Dim lngRow As Long
        Dim intCol As Integer
        Dim c As Range
        Dim strClip As String
        
        Const cStrNextCol As String = vbTab
        Const cStrNextRow As String = vbCrLf
        
        With Selection
            If Not TypeOf Selection Is Range Then
                On Error Resume Next
                .Copy
                Exit Sub
            End If
                
            If .Areas.Count = 1 Then
                For lngRow = 1 To .Rows.Count
                    For intCol = 1 To .Columns.Count
                        strClip = strClip & _
                            Selection(lngRow, intCol).Value & cStrNextCol
                    Next intCol
                    strClip = Left(strClip, Len(strClip) - Len(cStrNextCol)) _
                        & cStrNextRow
                Next lngRow
            Else
                For Each c In .Cells
                    strClip = strClip & c.Value & vbCrLf
                Next c
            End If
            strClip = Left(strClip, Len(strClip) - Len(cStrNextRow))
            DataObj.SetText strClip
            DataObj.PutInClipboard
        End With
    End Sub
    

    1 In actuality this file exists at %ProgramFiles%\Microsoft Office\root\vfs\System – Office does some virtualisation trickery to make it appear where it does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently upgraded from Excel 2007 to Excel 2010, and we have found that
I found that in Excel 2010 (and 2007), when you try and choose one
I am trying to strip data from thousands of identical Excel 2007/2010 files. I
I use VS 2010 for creating Excel 2007 xltx template. I want to remove
I am working on a VSTO Excel 2010 Macro Enabled Template Project, that I
I am migrating some spreadsheets from Excel 2003/WinXP to Excel 2010/Win7. Some spreadsheets use
I'm using VS 2010 to develop an Excel 2007 COM Add-In. Because it's a
I am writing an application that extracts images from an Excel spreadsheet using COM
I am using Excel 2010 and I am using java excel connector library (from
In Excel 2010 the method described below, the ScreenUpdating works correctly. But in 2007,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.