+ Reply to Thread
Results 1 to 2 of 2

Print out multiple lines in a textbox via a loop

  1. #1
    Registered User
    Join Date
    09-21-2019
    Location
    Scotland
    MS-Off Ver
    windows 10
    Posts
    15

    Print out multiple lines in a textbox via a loop

    Please Login or Register  to view this content.
    I am trying to print out the following into a textbox (17 is the 'whole' variable in this example)

    17 /2 = 8 remainder 1
    8 / 2 = 4 remainder 0
    4 / 2 = 2 remainder 0
    2 / 2 = 1 remainder 0

    But the code above will only print 1 line not the multiple lines ?

    Help appreciated

    Note I have already set the property of the textbox to multi line.
    Last edited by hoi2you; 07-15-2020 at 08:56 AM.

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

    Re: Print out multiple lines in a textbox via a loop

    You need to include the current context of the textbox when updating with line in loop

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

+ 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. [SOLVED] How to delete multiple lines in a textbox with a command button?
    By frankytheman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2020, 03:58 AM
  2. [SOLVED] Loop through lines in a text file ignoring lines between two different strings
    By webwyzard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2018, 08:00 PM
  3. [SOLVED] Loop and delete lines till no more lines left to check
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2018, 08:15 AM
  4. loop copy paste and average of multiple lines
    By cboseva in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2018, 06:20 PM
  5. [SOLVED] How to make Loop for Multiple textbox change
    By munandar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-01-2016, 09:21 PM
  6. [SOLVED] Put Multiple Lines in Single Textbox Dynamically from Sheet
    By AmirSoft in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2015, 12:27 PM
  7. [SOLVED] print every 44 lines (including blank lines) per page
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-02-2014, 03:40 PM

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