+ Reply to Thread
Results 1 to 5 of 5

Can't Paste using .Font.Bold = True into Worksheet_SelectionChange

  1. #1
    Registered User
    Join Date
    04-30-2021
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    13

    Can't Paste using .Font.Bold = True into Worksheet_SelectionChange

    Hello, everyone (´• ᵕ •`)

    Does anyone know why when I use this code below I can't copy and paste other Ranges?
    For instance, if I copy Range("A2") and then select Range("A3") to paste the value the sheet automatically interrupt the copy-paste process (as if I were pressing the Delete button)

    HTML Code: 
    Last edited by BiaMidori; 10-18-2021 at 11:10 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Can't Paste using .Font.Bold = True into Worksheet_SelectionChange

    The action in your SelectionChange event clears the clipboard (just as if you did it manually)
    Rory

  3. #3
    Registered User
    Join Date
    04-30-2021
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    13

    Re: Can't Paste using .Font.Bold = True into Worksheet_SelectionChange

    Understood! Thanks for the quick response, rorya!

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Can't Paste using .Font.Bold = True into Worksheet_SelectionChange

    You could work around that by testing the Application.cutcopymode setting and only running your selectionchange code if it's false.

  5. #5
    Registered User
    Join Date
    04-30-2021
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    13

    Re: Can't Paste using .Font.Bold = True into Worksheet_SelectionChange

    Great idea! I've used the code below and it worked beautifully, now I can copy and paste other Ranges. Thank you very much (^▽^)

    HTML Code: 

+ 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. Replies: 6
    Last Post: 04-10-2014, 11:09 AM
  2. Need BOLD Font in VBA
    By rsanti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2012, 08:22 PM
  3. Replies: 0
    Last Post: 11-09-2011, 07:14 PM
  4. VBA - Add Font Bold
    By Redd in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-15-2007, 03:57 PM
  5. Replies: 1
    Last Post: 11-07-2007, 08:45 PM
  6. If ActiveCell.Font.Bold = True Then ... trying to specify a range, not 'entirerow'
    By Winawer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2006, 06:08 PM
  7. Bold Font
    By scantor145 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2006, 09:15 AM

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