+ Reply to Thread
Results 1 to 3 of 3

Macro to Drag Formula

  1. #1
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Macro to Drag Formula

    Hi Everyone,

    I'm looking for a Macro that can drag a vlookup formula in cell D6 until there is no value in column C. Basically i have a query that spits data into my spreadsheet. Excel tends to get a little screwy when i pull the data in from the spreadsheet. I would run the Macro after refreshing the query, it would drag D6 down until column C has no value. In the latest spreadsheet I just ran, the values stopped at cell C519. I would of wanted the macro to automatically stop dragging at D519. Is this possible?

    Thanks for the help.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macro to Drag Formula

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: Macro to Drag Formula

    Thank you.

+ 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] Drag a formula down by a macro, after a set of actions
    By Victor-J in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-03-2017, 04:41 PM
  2. [SOLVED] Macro to drag formula and paste values
    By ricdamiani in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-05-2016, 12:25 AM
  3. [SOLVED] Macro to simply drag formula down to last active row - Rows are variable
    By sx200n in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2015, 10:15 AM
  4. Copy and Drag Formula Macro
    By aounhanif in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2013, 11:57 AM
  5. Using Macro to drag down formula on a seperate worksheet
    By unreal_event_horizon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2013, 09:44 AM
  6. Macro to Drag Down Formula
    By tsioumiou in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2012, 09:42 AM
  7. Macro to (i) drag and drop & (ii) input array formula
    By JHCali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2008, 08:58 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