+ Reply to Thread
Results 1 to 5 of 5

How to disable the moving dottined line when copying

  1. #1
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    How to disable the moving dottined line when copying

    Hi Guys,


    I have the following VBA code

    Please Login or Register  to view this content.
    When I acativate the red bit I am left with the "copy dotted moving line" around AB

    and when I activate the black bit I am left with the dotted line aroung D.

    How do I turn this off?

    I am attaching the full code in the VBA module below incase there is anything there that needs changing.

    Please Login or Register  to view this content.

    Thanks in Advance

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,491

    Re: How to disable the moving dottined line when copying

    Use
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: How to disable the moving dottined line when copying

    Hi there,

    If you're copy/pasting only values (not formats), it's much more efficient to assign the values from the source range to an array, and then to assign the values in that array to the target range - this also avoids dotted lines and leaving the target range selected at the end of the operation.

    See if the following code does what you need:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  4. #4
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: How to disable the moving dottined line when copying

    Thanks a mil guys,

    Greg that formula seems to have worked perfectly. Really smooth with no obvious copying and pasting.

    Thanks so much

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: How to disable the moving dottined line when copying

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

+ 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. Disable Excel file from moving/copying
    By Teuntja123 in forum Excel General
    Replies: 3
    Last Post: 01-31-2018, 07:07 AM
  2. Replies: 0
    Last Post: 02-19-2014, 03:49 PM
  3. [SOLVED] Moving Contents of Line to End of Previous Line in Word 2010 doc
    By staggers47 in forum Word Formatting & General
    Replies: 4
    Last Post: 12-15-2012, 09:17 AM
  4. Disable delete row when moving from one cell to another
    By strippy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-20-2011, 08:48 AM
  5. Copying moving range based on moving cell reff.
    By Varmark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2011, 04:47 AM
  6. disable moving userform
    By cassiopea in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2010, 03:52 AM
  7. [SOLVED] How do I disable the On-line HELP feature?
    By JBlair in forum Excel General
    Replies: 3
    Last Post: 03-04-2006, 08:30 AM

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