+ Reply to Thread
Results 1 to 7 of 7

Change MsgBox to copy value

  1. #1
    Registered User
    Join Date
    08-25-2023
    Location
    Thailand
    MS-Off Ver
    2016
    Posts
    8

    Unhappy Change MsgBox to copy value

    Hi everyone, I have a bit problem like I need to copy value, but this code just shows the value with MsgBox I have change to value.copy or copy.value or whatever it can't be copied anyway. So, I need you guys to help me to change Msgbox to copy the value. PLEASE HELP ME

    change to copy value.PNG


    Many thanks.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Change MsgBox to copy value

    What do you want to do with it once "copied"?
    It's already stored in a string variable so you can just use that to paste it somewhere or use it elsewhere in the code.

    Need more information.

    BSB

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2011
    Location
    usa
    MS-Off Ver
    Excel 2007, Excel 365
    Posts
    495

    Re: Change MsgBox to copy value

    Msgbox is primarily used to display information. Copying a value is a separate animal.

  4. #4
    Registered User
    Join Date
    08-25-2023
    Location
    Thailand
    MS-Off Ver
    2016
    Posts
    8

    Re: Change MsgBox to copy value

    Quote Originally Posted by johnnyL View Post
    Msgbox is primarily used to display information. Copying a value is a separate animal.
    I need to know what code I should use to copy that value. Can you give me some sample? Now, I have no idea and can't solve this solution TT

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2011
    Location
    usa
    MS-Off Ver
    Excel 2007, Excel 365
    Posts
    495

    Re: Change MsgBox to copy value

    @BadlySpelledBuoy already pointed out that you already have it saved, so just paste it where you want it.

  6. #6
    Registered User
    Join Date
    08-25-2023
    Location
    Thailand
    MS-Off Ver
    2016
    Posts
    8

    Re: Change MsgBox to copy value

    it didnt work, could you elaborate please. what i got is popped up error code

  7. #7
    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,446

    Re: Change MsgBox to copy value

    You don't have to paste it. Just use something like
    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


+ 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] Change length of button texts on msgbox
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-09-2019, 04:04 AM
  2. How to Change MsgBox default Title
    By okelly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2012, 12:43 PM
  3. MsgBox on Cell Change
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2010, 08:59 AM
  4. Change Macro using Values & MsgBox
    By The Exceller in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2010, 01:47 PM
  5. [SOLVED] Wait for user to change data after msgbox ????
    By CanadianTrev in forum Excel General
    Replies: 1
    Last Post: 06-18-2005, 04:05 PM
  6. [SOLVED] how do i change font size in msgbox
    By pete the greek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2005, 11:05 AM
  7. MsgBox Font Size change
    By Robert Christie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2005, 10:06 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