+ Reply to Thread
Results 1 to 4 of 4

Userform field to show existing string with ability to change.

  1. #1
    Registered User
    Join Date
    04-07-2008
    Location
    Adelaide, SA
    Posts
    87

    Userform field to show existing string with ability to change.

    Hi all,
    I have a user form which is programmed using VBA. It has "NEXT" and "PREVIOUS" buttons which can move up and down rows in the spreadsheet and show the relevant values, and an "ADD" button which enters the new information into the current active row.

    Here is an example of what I am trying to achieve -

    The user writes this sentence in (text box A) "I Have A Dog", then presses "ADD", this is then entered in Cell A1. When the user then presses the "NEXT" button to go to the next row, I need (text box A) to still read "I Have A Dog" and not be blank so all the user has to do then is press the "ADD" button to enter this sentence into the now cell A2. This process continues until the user changes (text box A) and it now reads "I Have A Cat" and the user then presses "ADD" to enter this into the CurrentRow, Column A.
    I now need this to be the sentence that appears in (text box A) when the user goes to the next row.

    Can anyone help me with this problem?

    Thanks

    Yappa

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Yappa

    How is the textbox being cleared in the first place?

  3. #3
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    TRY THIS CODE
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-07-2008
    Location
    Adelaide, SA
    Posts
    87
    Hi,

    Sorry about the delayed response, had to get some sleep.

    Norie, the text box is clear because when the next button is pressed, it is showing the value in an unused cell, which is why I need it to show the current value from the previous row, cell.

    Shijesh Kumar, Thanks for your response. Your code worked with some modifications. My problem was I was concentrating on the "ADD" button and not on the "NEXT" button. Your direction and thinking was just what I needed, thanks greatly.

    Yappa.

+ 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. IF AND THEN ELSE (in UserForm)
    By apoc [t.i.m.] in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-16-2007, 01:31 PM
  2. Use String Variables in File Path and create path if not existing
    By JanBang in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-26-2007, 09:04 AM
  3. processing a string by Excel
    By mark_neil2 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-20-2007, 07:35 AM
  4. Stripping the Last Field From a URL String
    By chasfh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2007, 09:04 AM
  5. VBA: how to change '.' into ',' in string
    By olio39 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2007, 05:07 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