+ Reply to Thread
Results 1 to 6 of 6

Pasting text into a cell that has Upper Case code for the worksheet

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    NE
    MS-Off Ver
    2013
    Posts
    42

    Pasting text into a cell that has Upper Case code for the worksheet

    I have figured out the VBA code to require text to be upper case if it is typed into the range of cells. The problem I am having is when someone copy/cuts and then pastes that text into the cell it will not make the code run. I am missing something somewhere.

    Please Login or Register  to view this content.
    any help is greatly appreciated.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Pasting text into a cell that has Upper Case code for the worksheet

    It should work if they copy-paste one cell.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    NE
    MS-Off Ver
    2013
    Posts
    42

    Re: Pasting text into a cell that has Upper Case code for the worksheet

    It does work for one cell. The problem is that multiple people will have access to this worksheet. The code pasted in the original post is just a small example of the entire code. The people with access to this worksheet will want to copy and paste multiple columns and rows at one time. If someone does this the current code don't work properly. Is there a way to make this code work under these parameters? Thanks for any help in advance.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Pasting text into a cell that has Upper Case code for the worksheet

    You have told code to stop if Target is more than one cell. You may try:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Pasting text into a cell that has Upper Case code for the worksheet

    Try this...

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-21-2013
    Location
    NE
    MS-Off Ver
    2013
    Posts
    42

    Re: Pasting text into a cell that has Upper Case code for the worksheet

    Thank you AlphaFrog. That works perfectly.

+ 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] IF text in a cell is UPPER case or mixed
    By johnandrews in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2014, 07:47 AM
  2. Write a subroutine in a module to change case upon exit of a cell to upper case
    By Stephd22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2013, 06:39 PM
  3. VB Code To Force Upper Case?
    By Strugggler in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2009, 06:24 PM
  4. Replies: 2
    Last Post: 12-09-2005, 05:15 AM
  5. Replies: 14
    Last Post: 08-25-2005, 10:05 PM

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