+ Reply to Thread
Results 1 to 2 of 2

Dragging a macro like a formula

  1. #1
    Registered User
    Join Date
    07-31-2007
    Posts
    7

    Dragging a macro like a formula

    I was wondering if there was a way to write a macro that is essentially a formula and can be treated as such. What i mean is that if i run the macro in one row and then select that row and drag it down, it should update automatically. is there a way. also, what sort of notation will be used. will it be RC[1] notation. thanks. anish

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    You can use VBA to create formulas, which would allow you to drag-fill them to other cells - they're called User Defined Functions.

    They are very similar to macros, except they have some limitations. Here are a few examples of UDF creation and info:

    http://www.vertex42.com/ExcelArticle...functions.html

    http://www.ozgrid.com/VBA/Functions.htm

    http://www.exceltip.com/st/Writing_Y...Excel/631.html

+ 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