+ Reply to Thread
Results 1 to 3 of 3

Extracting substring function VBA

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    1

    Extracting substring function VBA

    Hi,
    Could anyone write for me a function for Excel in VBA, that extracts from String "=TRIM(CLEAN('SomeSheet'!A8))" a substring "'SomeSheet'!A8" ?
    Thank you for help, I 'm not familiar with VBA.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Extracting substring function VBA

    =SUBSTITUTE(SUBSTITUTE(F1,"=TRIM(CLEAN(",""),"))","")

    with the data being in cell f1
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extracting substring function VBA

    Try something like
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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