+ Reply to Thread
Results 1 to 5 of 5

Use ActiveCell as Range

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    LeftCoast
    MS-Off Ver
    Excel 2007
    Posts
    33

    Use ActiveCell as Range

    Hello,

    I have just learned how to program my NewButton to go to the proper cell to begin data entry; but now I have to modify my input code to be variable and to use the ActiveCell.

    My current OK button functions (for Data Entry) and the code is below
    Please Login or Register  to view this content.
    Now I want to modify the Range (E8) to be dynamic and to use the selected by ActiveCell that the New Button's created. I have tried all types of scenarios with no success.

    Any Help would be appreciated.

    Thanks!
    Last edited by Leith Ross; 05-10-2012 at 12:02 AM. Reason: Added Code Tags

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Use ActiveCell as Range

    It looks more like you want E8 to by dynamic in that the next time you click OK it transfers the form values into the next empty row down, yes?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Use ActiveCell as Range

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

  4. #4
    Registered User
    Join Date
    05-02-2012
    Location
    LeftCoast
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Use ActiveCell as Range

    First, sorry about not displaying the code correctly. I will do better next time.

    Actually my new button is finding the next empty cell in row E. Then the comboboxes fill down. And yes, I would like the range to be dynamic.

    thanks.

  5. #5
    Registered User
    Join Date
    05-02-2012
    Location
    LeftCoast
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Use ActiveCell as Range

    too much overthinking. I just removed the range line and it works like a charm once the NewButton selects the right cell.

    thanks all.

+ 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