+ Reply to Thread
Results 1 to 2 of 2

Dynamic Autofill Loop Methodology

  1. #1
    Registered User
    Join Date
    05-14-2018
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    2

    Dynamic Autofill Loop Methodology

    Hello.

    So, I'm trying to do a loop array formula that autofills till the last row dynamically. If anyone can do this, can you please help?

    Sub Formula1_a ()
    Range("A2").Select
    ActiveCell.FormulaR1C1 = Evaluate("=MID($A2,FIND(""*"",SUBSTITUTE($A2,""\"",""*"",LEN($A2)-LEN(SUBSTITUTE($A2,""\"",""""))))+1,LEN($A2))")
    Selection.AutoFill Destination:=Range("B2:B" & Range("A" & Rows.Count).End(xlUp).Row)
    Range(Selection, Selection.End(xlDown)).Select
    End Sub

    Also, how do you use Evaluate() with Search() in VBA?

    Edit: Found that it was impossible to do so. In which case, what is the vba version of this?

    Evaluate("=MID($A2,FIND(""*"",SUBSTITUTE($A2,""\"",""*"",LEN($A2)-LEN(SUBSTITUTE($A2,""\"",""""))))+1,LEN($A2))")
    Last edited by Geodyssian; 04-12-2019 at 03:16 AM.

  2. #2
    Registered User
    Join Date
    04-02-2015
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    47

    Re: Dynamic Autofill Loop Methodology

    Figured it out.

+ 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] Dynamic Autofill
    By ejoneslor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2015, 12:06 PM
  2. Need help with dynamic autofill
    By oldmanexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 11:36 AM
  3. Most Efficient Dynamic 'Hide Row' Methodology?
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2013, 11:40 AM
  4. [SOLVED] Urgent Help required !!!! - to deplay correct loop methodology are some other equivalent
    By Rem0ram in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 12-15-2012, 01:36 PM
  5. [SOLVED] Need help with For Loop methodology for a filter macro
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-31-2012, 01:27 PM
  6. [SOLVED] Loop and AutoFill
    By Anonymous in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2006, 03:10 PM
  7. [SOLVED] AutoFill Loop
    By Pete in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2006, 04:00 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