AndyTampa
Board Regular
- Joined
- Aug 14, 2011
- Messages
- 199
- Office Version
- 365
- 2016
- Platform
- Windows
I had an idea for the future, but it seems impossible. I have a cell in my spreadsheet where I have to place the case number of the job I'm working. Sometimes, there are 2 and I've had up to 5 so far. I have buttons that read that cell to place custom messages in a different cell. When I type these case numbers into the cell, they are usually separated by a comma and a space. Sometimes, I miss the comma or the space.
I've never used a UserForm so I'm completely unfamiliar with it. I was thinking of maybe a function. What I want is, when I press one of the buttons, I want the button macro to see that there are more than the 6 characters of the case number (when there's only 1) and call a function that will place each case number on it's own line on a user form with a button to select it for the button I pressed.
The result will be that if I press the button to reinstate a case, the button for the "Case ###### Reinstated" button will ask me which case to reinstate and likewise for other buttons. Case numbers are alpha-numeric.
Is this possible to create a macro that will look at the cell and recognize the different cases even if the separator may be wrong? At this point, I don't want to put out anyone to create it. I just want to know if it's possible and what commands might be needed for the parsing.
I've never used a UserForm so I'm completely unfamiliar with it. I was thinking of maybe a function. What I want is, when I press one of the buttons, I want the button macro to see that there are more than the 6 characters of the case number (when there's only 1) and call a function that will place each case number on it's own line on a user form with a button to select it for the button I pressed.
The result will be that if I press the button to reinstate a case, the button for the "Case ###### Reinstated" button will ask me which case to reinstate and likewise for other buttons. Case numbers are alpha-numeric.
Is this possible to create a macro that will look at the cell and recognize the different cases even if the separator may be wrong? At this point, I don't want to put out anyone to create it. I just want to know if it's possible and what commands might be needed for the parsing.