+ Reply to Thread
Results 1 to 3 of 3

VBA to compare cell formats

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    7

    VBA to compare cell formats

    VBA would help ..

    Here is the qtn if two cells A1 and A2 has "ab 1" and "ab 2" the answers for comparing cells should be true as both cells has first 2 letters as alphabets then space followed by numeric..format of
    cells is same. if you can give me a VBA it would be great
    help.

    Thanks for the help!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: VBA to compare cell formats

    Give some more examples with different permutation combinations for giving exact solution


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: VBA to compare cell formats

    Thank you ..

    Here is what exactly i am looking ..in the below link u will find each state driving license formats of each state..example for alabama 7 Numeric..for ALASKA Up To 7 Digits..what am i looking is if we select a specific state and then insert any driving license of that state in next cell if the format matches i want that next cell to be true if not false ..wonder if we can create anything like this ..there are about 50 states with different lisence formts..

    Please check if we can write a VBA for this ..



    http://www.diogenesllc.com/stdlformats.html

+ 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. compare cell formats
    By Gary''s Student in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2017, 08:50 AM
  2. Replies: 6
    Last Post: 05-30-2012, 03:09 PM
  3. Compare Formats
    By wilro85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2010, 12:13 PM
  4. [SOLVED] How do I compare cells and if FALSE compare to next cell in EXCEL
    By Cindie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-24-2006, 01:35 PM
  5. Formats: Too many different cell formats error message
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2005, 10:06 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