+ Reply to Thread
Results 1 to 6 of 6

Dynamic Textbox Location

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    19

    Exclamation Dynamic Textbox Location

    I want that the location of my textbox be placed after the last cell in a range that contains a value. Is this possible using vba code?

    A1 = 22

    A2 = sample

    A3 = sample 22

    A4 = textbox will be placed here.
    Last edited by webshockerz; 03-01-2013 at 01:34 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Dynamic Textbox Location

    Hi.

    Is this what you want? Just try this macro code:

    inserttxtbox.xlsm
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Registered User
    Join Date
    10-03-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Dynamic Textbox Location

    Close enough. Considering that I can enter values in my range and it will automatically be after the last cell that contains a value.

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Dynamic Textbox Location

    Can you post an example?

  5. #5
    Registered User
    Join Date
    10-03-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Dynamic Textbox Location

    By the way adding a textbox is no longer needed. The textbox is already there, part of the design. My only concern is its location. Thanks more power

  6. #6
    Registered User
    Join Date
    10-03-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Dynamic Textbox Location

    Consider that I have 15 cells in my range as an example.

    A1 = "sample"
    A2 = "sample"
    A3 = "sample"
    A4 = "sample"
    A5 = "sample"
    A6 = "sample"
    A7 = "sample"
    A8 = "sample"
    A9
    A10
    A11
    A12
    A13
    A14
    A15

    Out of my 15 cells 8 of them have values. The textbox already exist regardless of its location in the worksheet. I want the result that the textbox will be after the last cell that contains a value for this case it will be on cell A9, since the last cell that contains a value is Cell A8.
    Last edited by webshockerz; 03-01-2013 at 02:00 AM.

+ 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