+ Reply to Thread
Results 1 to 2 of 2

VBA to check if data in clipboard has "£" in it.

  1. #1
    Registered User
    Join Date
    09-17-2007
    Posts
    11

    Lightbulb VBA to check if data in clipboard has "£" in it.

    hello,
    i have an excel based order managemnt system where i copy orders from a CSV file and paste it in Excel worksheet. I need a macro to check the data before pasting it in "Sheet1" for "£" sign and if found give an error saying "data not suitable". if this error needs a userform type box i will be more than happy to create one.

    i have other worksheets in this excel workbook where i paste data that has "£" sign so i only need it to come in effect when pasting data in Sheet1.
    Also i will be combining the VBA with an existing macro which formats and amends the pasted data so a macro will be helpful which i can paste in my existing macro.

    my current macro starts like this:
    ' PROCESS2 Macro
    '

    '
    Range("A1").Select

    (i am assuming i can just paste your vba code before the line range ("A1") select.
    many thanks for your help in this matter

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VBA to check if data in clipboard has "£" in it.

    Assuming you have your data in a string then

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

+ 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. DATA VALIDATION ALLOW TEXT "DROP" and "check"
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2014, 12:52 AM
  2. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  3. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  4. [SOLVED] How to check two columns for the presence of text and returning "yes" or "no"
    By Karelia Suite in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2013, 09:36 AM
  5. [SOLVED] Loop to check for "yes" then copy the IDs with "yes" and paste to other workbook
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2012, 12:41 PM
  6. create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 PM
  7. [SOLVED] Store clipboard before "vba do cut&paste" then recover stored information to clipboard?
    By Marie J-son in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2006, 02:00 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