+ Reply to Thread
Results 1 to 3 of 3

VBA when pasting the data highlighted blue color rectangle is seen

  1. #1
    Registered User
    Join Date
    05-16-2016
    Location
    bangalore,India
    MS-Off Ver
    2013
    Posts
    32

    VBA when pasting the data highlighted blue color rectangle is seen

    Hello,

    when i am pasting the data to a worksheet ,i see a highlighted rectangle with blue color. In the below pic u can see rows 3,4,5 and column A to H it has a blue color rectangle highlighted . So how do i remove this highlighted rectangle ?

    light.PNG

    below is the code :

    Windows("kl.xls").Activate
    Range("A2:G2").Select
    Range(Selection, Selection.End(xlDown)).Select
    Application.CutCopyMode = False
    Selection.Copy

    Windows("c250k.xlsm").Activate
    Sheets("Sheet1").Select
    Range("A3").Select
    ActiveSheet.Paste
    Range("A3:H3").Select
    Application.CutCopyMode = False


    Regards
    Wither

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: VBA when pasting the data highlighted blue color rectangle is seen

    Looks like its still selected. Try adding

    Please Login or Register  to view this content.
    to the end.
    Martin

  3. #3
    Registered User
    Join Date
    05-16-2016
    Location
    bangalore,India
    MS-Off Ver
    2013
    Posts
    32

    Re: VBA when pasting the data highlighted blue color rectangle is seen

    HI mrice,

    Thank you it works!

+ 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. Automatic color change of a rectangle when cell changes.
    By pauldobie1966 in forum Excel General
    Replies: 2
    Last Post: 03-17-2015, 08:04 AM
  2. Replies: 4
    Last Post: 08-19-2014, 08:38 AM
  3. Replies: 1
    Last Post: 05-27-2014, 05:39 PM
  4. how to find a color in a row where the color is blue , if true fill with a specific text
    By jayakumar.chandran in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2012, 03:38 AM
  5. Changing all blue color numbers/texts to black color in cells...
    By dhyun3 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-05-2012, 10:17 AM
  6. delete row if the font color is blue
    By barkiny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2005, 07:40 AM
  7. Set color of data in unprotected cells to blue
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2005, 08:19 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