+ Reply to Thread
Results 1 to 4 of 4

If .offset (x,x).value contains then

  1. #1
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    If .offset (x,x).value contains then

    Hi all

    How can I get VBA to capture whether the last three characters in col. A contains "ABC"?

    If it does it should insert "ABC" in col. C (This is not the problem though, I only need to know how I can capture the "ABC")

    Thanks a lot

    FD
    Last edited by FallingDown; 04-22-2013 at 05:46 AM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: If .offset (x,x).value contains then

    You can use Excels =right function along with IF. Why would you want to use VBA?
    Cheers!
    Deep Dave

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: If .offset (x,x).value contains then

    you can also use right in vba
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Re: If .offset (x,x).value contains then

    Pefrect, thanks JosepP

    @msexcelathome: Because it's part fo a bigger macro, formulas only make more issues

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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