+ Reply to Thread
Results 1 to 6 of 6

Macro to insert rows based on user selection Options??

  1. #1
    Registered User
    Join Date
    07-11-2007
    Posts
    9

    Macro to insert rows based on user selection Options??

    I have a macro that allows a user to insert one or more rows based on
    a user input box. This allows me to control which formulae get copied
    into the new cells.

    The macro works fine UNLESS the user scrolls around the screen before
    making their selection. How can I resolve this?


    This is the key part of the script.


    Thanks,


    Mike

    Please Login or Register  to view this content.
    etc.etc.
    Last edited by mike.magill; 01-25-2010 at 06:07 AM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Macro to insert rows based on user selection Options??

    Please read the forum rules. There you'll find that your code need to be place between CODE TAGS. Do this

    HTML Code: 
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Macro to insert rows based on user selection Options??

    .......................
    Last edited by contaminated; 01-25-2010 at 06:01 AM.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Macro to insert rows based on user selection Options??

    Hi mike.magill
    you can limit the scroll area
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  5. #5
    Registered User
    Join Date
    07-11-2007
    Posts
    9

    Re: Macro to insert rows based on user selection Options??

    Quote Originally Posted by pike View Post
    Hi mike.magill
    you can limit the scroll area
    Please Login or Register  to view this content.
    Hi Pike,

    Thanks for the help.

    Unfortunately I don't want to limit the scroll area. I want them to be able to scroll down while the script is running in order to reveal the area where they want to insert rows (if not already visible on screen). The macro works fine if they don't scroll but, as soon as the user scrolls, the macro completes but does not insert any rows.

    Any more help would be gratefully received.

    Thanks

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Macro to insert rows based on user selection Options??

    Strange, your macro worked for me when I scolled?

+ 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