+ Reply to Thread
Results 1 to 4 of 4

Dialogue box to select range for autofill macro

  1. #1
    Registered User
    Join Date
    11-14-2008
    Location
    Brooklyn, NY, USA
    Posts
    53

    Dialogue box to select range for autofill macro

    Hi all,
    I have an autofill macro that copies a formula in one cell to all the cells in a defined range.

    Please Login or Register  to view this content.
    Currently, I manually edit the macro each time I'm using a unqiue range, but I feel like there is a more efficient way to do this. Any ideas? Is it possible to create a dialogue box that allow me to select the range?

    Thanks in advance for the help.

    Cheers!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Dialogue box to select range for autofill macro

    Something like this
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-14-2008
    Location
    Brooklyn, NY, USA
    Posts
    53

    Question Re: Dialogue box to select range for autofill macro

    Roy --- this is great! However, I'm still struggling a bit. When I went to run the macro, I received a
    '424' run-time object required
    This is the code:

    Please Login or Register  to view this content.
    I'm sure I did something to make a bit of a hash of it, but I'm not sure what. Any ideas?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Dialogue box to select range for autofill macro

    Try keeping your original macro as is, I would change the name from autofill() to myautofill() to avoid possible problems, then

    add this macro to call it
    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