+ Reply to Thread
Results 1 to 13 of 13

Mouse scroll WITHIN a data validation list & option macro assistance

  1. #1
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Question Mouse scroll WITHIN a data validation list & option macro assistance

    Hello, I'm a new member here and trying to do create something within Excel to help me, and others, with the job I do everyday. I'm trying to do a few things actually. I am somewhat a newb at programming, although I do understand how C++ and the coding works within Excel. To me, it's like the English language...knowing all of the vocabulary and formatting it right is important. If I don't know the vocabulary, I don't know what options I have.

    This tool is being used in the call center I work in. It is to help eliminate repititious information used to notate accounts. I have attached a picture of what the tool looks like so you can have a better idea of what I'm working with. Here are a list of things I'm trying to do which I have searched and not found answers to:

    1. I am trying to use a middle mouse scroll to scroll through validation list. This list information is located on a different locked tab. Basically, I have a few rows where a drop down selection can be made and it would be easier to scroll rather than manually moving the slider within the validation list.

    2. As you can see, this "tool" an employee and I have created has many buttons. What I would like to do is to be able to click a button on the right and have it "stack" text within a single cell. In other words, if I click the button once, the text may be entered into the "actions taken" cell. If I click another button, I can have the option (or maybe a little "+" next to the button) to add this button's information to the end of the information already entered within the "actions taken" box. I've tried recording and using the keyboard and selecting "end" and then having the text added, but it didn't work. I've seen "loop" VBA code, but I don't want something to repeat, I want it to stack in the cell when clicked manually.

    I'm sure there is a way to make the tool much better using VBA code and not use Excel, but I don't have an extensive knowledge of Excel to do something like that. I'm a very fast learner and understand how the coding works, so if you have an idea which may help, and you understand what I'm trying to do here, please provide your .02.

    Basically, it's used so the Customer's name and phone number are entered manually, and then just about everything else is automated by the use of the buttons on the right. If I could get the 2 above options to work, it'd be perfect. I just figured out I could eliminate screen flicker and hide the macros working by using:

    Please Login or Register  to view this content.
    Haha...I love it.

    Thanks,

    Dustin
    Attached Images Attached Images
    Last edited by HOT97ECLIPSEGSX; 01-07-2010 at 09:33 PM.

  2. #2
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Re: *Searched* Mouse scroll WITHIN a data validation list

    Ok, my fault, I read the rules and it says files are helpful. I'll post the actual tool I use so you can see it in action. I will eliminate the feedback macro so I don't receive any spam email in my Outlook inbox
    Attached Files Attached Files

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: *Searched* Mouse scroll WITHIN a data validation list

    You can't scroll through the validation list.

  4. #4
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Re: *Searched* Mouse scroll WITHIN a data validation list

    Ok, so I can't scroll through the validation list. Can I make a list which allows the user to scroll in?

    Also, what about the stacking of the text within the text box which already has text in it?

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: *Searched* Mouse scroll WITHIN a data validation list

    There have been many posts about trying to scroll through validation, ComboBoxes,ListBoxes, the usual end result when somebody tries this is that XL ends up freezing.
    To add additional Text to a cell, you could try.

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Or if you wanted another line added to the cell
    Please Login or Register  to view this content.
    Last edited by davesexcel; 01-08-2010 at 12:07 AM.

  6. #6
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Re: *Searched* Mouse scroll WITHIN a data validation list

    Thank you for your help. I will try this and see if this helps. If you download the tool (which the buttons use macros to enter text into the boxes), you'll see what I'm talking about.

    I'll fiddle with it and see if I can get it to work. Basically, I want to click a button (which enters some text into the other fields) and then if I click another button it'll "stack" the notes on top of what was already previously entered by the first clicked button.

  7. #7
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Re: *Searched* Mouse scroll WITHIN a data validation list

    Thanks for resolving the "text stack". I used the

    Please Login or Register  to view this content.
    coding to stack the notes.

    The only thing I am having a little trouble with is the formula bar. If the note gets long, the formula bar blocks part of the noting tool and some of the buttons. I know the formula bar can be removed through the menu, Tools > Options, but I wanted to know if there was a way to limit the formula bar. Basically I want to make it so that the user can double click into an editable cell and be able to click the end of the text already in the cell and edit the content. Currently the user can click into the formula bar if the text gets lengthy.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Mouse scroll WITHIN a data validation list

    This is what most go with, when the cell is too large to see what is on the sheet, it belongs in the worksheet module

    http://www.contextures.com/xlvba01.html#Worksheet

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Re: Mouse scroll WITHIN a data validation list

    So, if I read this right, is this code going to show the formula bar when the character length is greater than 50?

    If I wanted to remove the formula bar altogether (still trying to figure out whether I want to keep it or not), could I set this to 0 so the formula bar never shows while using the tool? I realize every user has different options they can select for the formula bar, but I thought this would eliminate it completely without having to go to each PC and remove it?

    Edit: It will show it when it's less than 50, not greater. My fault. I implemented the code and found out for myself. I'm finally getting the hang of this. I just wish I knew what great options I could add to this tool. I'm really trying to help the company I work for, and not only that, but my my job easier.

    And thank you, again, for helping me.
    Last edited by HOT97ECLIPSEGSX; 01-11-2010 at 10:27 PM.

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Mouse scroll WITHIN a data validation list

    When the cell has a great amount of characters, it tends to overlap onto the worksheet, making it difficult to edit a cell, you can edit the code to hide the formula bar when you are in the worksheet and then show it again, using the worksheet activate and de-activate event.

  11. #11
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Re: Mouse scroll WITHIN a data validation list

    Quote Originally Posted by davesexcel View Post
    When the cell has a great amount of characters, it tends to overlap onto the worksheet, making it difficult to edit a cell, you can edit the code to hide the formula bar when you are in the worksheet and then show it again, using the worksheet activate and de-activate event.
    I hate asking "tell me how to do it" questions...maybe I can search more, but is there coding to completely remove the formula bar, gridlines, and row and column headers without having to manually go to each PC and remove the option?

  12. #12
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Mouse scroll WITHIN a data validation list

    The macro recorder works very well for this, start the macro recorder and goto options, and do what you want.
    Place the code in your workbook open event and be sure to reverse it in your workbook close event.

  13. #13
    Registered User
    Join Date
    01-07-2010
    Location
    Dorothy and Todo Land, KS
    MS-Off Ver
    Office 2003 & 2007
    Posts
    34

    Re: Mouse scroll WITHIN a data validation list

    Thank you for your help. This works wonders. Have you opened the tool I've created? I am trying to get a few ideas on how to make this perform better. The way I have it set up now is probably not "proper" coding etiquette, but I'm doing the best I can.

    Each button has its individual text macro. The validation lists, and the clear/restore functions, are all stored/performed on the "info" tab. I wasn't sure if there was a way to completely eliminate this tab and store the information within the workbook so the extra tab could be removed.

    Basically, the clear option highlights all of the cells with editable open text fields (except temp notes), copies them, pastes them to the info tab (where the rows are hidden), and then clears them on the "call 1" tab. For restore, the copied information which was stored on info is selected, copied, and then paste back onto the call tab. This is the only way I found this to work. I'm sure there has to be a more "proper" way to get this to work.

    If you need code I can provide it for you.

+ 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