+ Reply to Thread
Results 1 to 9 of 9

Copying text from form into cell.

  1. #1
    Registered User
    Join Date
    04-25-2022
    Location
    Egypt
    MS-Off Ver
    365
    Posts
    6

    Question Copying text from form into cell.

    Hello Everyone,

    I am a noobie in VBA and I am currently trying to copy the text from a form created in excel (not ActiveX) into a message box but all I get is the choice number.
    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. I also fixed a VBA syntax error on the last line. --6StringJazzer

    is there anywhere to quote the text in the list form?
    Last edited by 6StringJazzer; 04-28-2022 at 11:42 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,771

    Re: Copying text from form into cell.

    Ahlan wa sahlan Noma9000!

    What kind of element is entry_type? Can you attach your file for better analysis? See yellow banner at the top of the page.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-25-2022
    Location
    Egypt
    MS-Off Ver
    365
    Posts
    6

    Re: Copying text from form into cell.

    Hello,
    entry_type contains a list with categories (string)
    Attached Files Attached Files

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Copying text from form into cell.

    So you want the text correct? Try:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  5. #5
    Registered User
    Join Date
    04-25-2022
    Location
    Egypt
    MS-Off Ver
    365
    Posts
    6

    Re: Copying text from form into cell.

    oh this worked pretty well!!
    Can't thank you enough!

  6. #6
    Registered User
    Join Date
    04-25-2022
    Location
    Egypt
    MS-Off Ver
    365
    Posts
    6

    Re: Copying text from form into cell.

    I'm sorry but I have another question that's somehow related to this one.

    What I wanted to do originally was to create a label or an if/case for when the input is +ve and the list box choice selected is "Income" the entry will be added to income and if the list is -ve and the choice in the list "expense" then cut the entry into the monthly expenses sheet

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Copying text from form into cell.

    I wonder... what is supposed to happen if the user enters a -ve value and marks it as Income in the dropdown? or +ve and "Expense"? I realize that would be incorrect, but it is my experience people do make mistakes.

  8. #8
    Registered User
    Join Date
    04-25-2022
    Location
    Egypt
    MS-Off Ver
    365
    Posts
    6

    Re: Copying text from form into cell.

    Quote Originally Posted by Arkadi View Post
    I wonder... what is supposed to happen if the user enters a -ve value and marks it as Income in the dropdown? or +ve and "Expense"? I realize that would be incorrect, but it is my experience people do make mistakes.
    It's just a validation step for users if they do not match a -ve value and the correct type confirmation message will show.

  9. #9
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Copying text from form into cell.

    Something like this?

    Please Login or Register  to view this content.

+ 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. Problem copying actual values form cell references
    By eleleldimos in forum Excel General
    Replies: 1
    Last Post: 04-22-2020, 11:25 PM
  2. Copying text from cells until text in a certain cell changes
    By zthearcnlc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2017, 03:53 PM
  3. Copying User form values from text boxes but need to convert to a number
    By lateniteNC1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2017, 08:45 AM
  4. Replies: 1
    Last Post: 08-28-2013, 05:04 PM
  5. [SOLVED] Copying data from a form to a cell
    By CarlosVA in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2013, 11:48 AM
  6. Copying Text from 1 cell and inserting into the text of another
    By brandnewday10 in forum Excel General
    Replies: 2
    Last Post: 04-19-2011, 05:20 AM
  7. Copying text from a cell and splitting the text in to individual cell
    By mvel_sky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2010, 05:58 AM

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