+ Reply to Thread
Results 1 to 9 of 9

Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTING

  1. #1
    Registered User
    Join Date
    10-03-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTING

    Hello,

    When I export data into text boxes (from one sheet to another - DataFill to LeadershipKanbanBoard) first time everything is getting exported as expected. The real problem starts with the second export, let me tell you why, please check below for details

    Expected result, difficulties and reasons
    1. First export all textboxes are coming as expected. These are going into sheet 2 (LeadershipKanbanBoard); coming into 'To-Do' section and this is perfectly as per my expectation.
    2. Second step after export is Business Users/Users manually moves the text boxes to different sections (in sheet2-LeadershipKanbanBoard’) due to which there will be some gaps formed. Please check sheet (LeadershipKanbanBoard) for details (attachment).
    3. Difficulty or what is that I want - I want Textboxes to get rearranged in sheet2 (LeadershipKanbanBoard) especially which are in section 'To-Do', if possible even in other sections (In Progress, Impediment and Done).
    4. Step 2 of what I want - If I run AddFeatureTextBoxes Macro (or click on Export Data button which is in DataFill sheet). I want data which is in this sheet1 (DataFill) should be moved to Sheet 2 (LeadershipKanbanBoard) but these Textboxes should come BOTTOM in the To-Do section.
    5. I request to please check attachment (Expected Result Sheet - I also kept all my requirements in this sheet).

    I request someone to please check and help me!! Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    This uses the zorder to arrange the shapes within a set of columns.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-03-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    First of all, thank you very much Andy!!

    Your script is working exactly as I need but the problem is with the second part. When I run my 'AddTextboxes' Macro then the new textboxes are getting added on top of the existing whereas I need these to be added after the last textbox available in To-Do Column. Can you please check my attached screenshot (TextBoxes Getting Overlaid On Top of Existing.PNG) for the defect. And the ExpectedResult sheet for more details/desired expectation.
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    Hello NametobeRenamed,

    Kudos to Andy Pope with his clever approach! You must please add to his Reputation.

    The easiest way to solve your new issue would be playing around with the Code you now have.

    No need to change the Macro's assigned to the Buttons.

    Please try the attached sample Workbook.

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Registered User
    Join Date
    10-03-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    Thank you very much Winon!!

    I got what you did and trying to say. Yes, I should you have played with the code more. I was thinking much than required, more then thinking I should have applied my brains in playing the code (step 1 after step 2 0 by this I should have figured it out) ... I will follow your suggestion for sure

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    You are welcome NametobeRenamed,

    Glad we could help

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

    Regards.

  7. #7
    Registered User
    Join Date
    10-03-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    Hello Winon - I followed your above mesg. and exactly did as you suggested.

    But after testing few things in the spreadsheet, I found a major/critical bug and I couldn't able to resolve myself, so that the reason coming for your help again (in fact both of you - Winon and Andy Pope). I'm making this thread form resolved to Unresolved.

    Bug - I see
    1. If there are more than 3 boxes in In Progress (Column D-F) or Impediment (Column G-I) or Done (Col J-K) sections and if I run ArrangeTextBoxes Macro then - the text boxes in the section are moving into To-Do section and getting OVERLAID from the 4th Textbox (or 2nd Row of textboxes). And this is happening for text boxes in all three sections if more than three boxes.
    ********** Say if I have 5 boxes in In Progress and 6 boxes in Impediment section then ..... 2 from In Progress section first getting overlaid on 4th and 5th text boxes in To-Do section and 4th, 5th and 6th boxes from Impediment section are getting overlaid on 6th, 7th and 8th text boxes in To-Do.

    Expectation - Textboxes placed within each section (To-Do, In Progress , Impediment and Done) should arrange within. Boxes shouldn't move from one section to another (or into To-Do), then my whole purpose/aim of creating this getting into vain. Can you please please please adjust the code accordingly. I hope you understand this bug clearly and for more details, can you please look into attachment screenshots and workbook. Thanks a ton in advance!!
    Attached Images Attached Images
    Attached Files Attached Files

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    The initial Left value, when moving down a layer, needs to include the offset of the columns it is processing.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-03-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Rearrange EXISTING textboxes FIRST and then new textboxes should come bottom of EXISTI

    Thank you very very much Andy!!! I really appreciate all your help!!
    You and Winon did an awesome work and you both are my super stars!!

    Closing this thread (making it to resolved)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Want Average on userform textboxes to ignore blank textboxes
    By cvanderweide92177 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2018, 12:47 PM
  2. [SOLVED] Select all text in textboxes when i click textboxes in simple way
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2017, 03:27 AM
  3. Replies: 5
    Last Post: 12-07-2016, 07:41 AM
  4. Replies: 0
    Last Post: 02-04-2015, 03:46 PM
  5. [SOLVED] Add top and bottom border to existing code
    By guitarsweety in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2014, 01:55 PM
  6. [SOLVED] add 2 more frames to existing UserForm VBA to populate textboxes
    By chriswhite1982 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-05-2014, 05:47 PM
  7. adding new worksheets to the bottom of an existing one
    By XxXElAiNeXxX in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2007, 11:08 PM

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