- Ultimate Handyman Forum Index Other DIY Computers
- Search
-
- It is currently Tue Apr 15, 2025 3:59 pm
- All times are UTC
Excel and VBA
All your computer hardware and software questions in here please.
Moderator: Moderators
-
- Senior Member
- Posts: 2039
- Joined: Tue Jul 29, 2008 5:11 pm
- Location: North Hampshire
- Has thanked: 0
- Been thanked: 1 time
Post by IDontBelieveIt »
Yes Hoovie, more realistically the list reads
A1 = "Select Fruit"
A2= "Apple"
A2= "Pear"
A3 = "Plum"
etc. etc. The user does not change these indeed he does not even see them other than when he opens a pick list or combo-box. The list has the usual linked cell.
Now, when the application is first loaded, or after a 'reset' (same macro invoked) then the pick list/combo-box shows "Select Fruit".
I cannot see 'shuffling the deck' via a macro would work as we have no idea which item the pick list is 'pointing to'..... ummm .... thinks ....
Oh yes we do (silly me!). So what you saying is pick up the linked cell value and shuffle the strings to suit? I think I see what your getting at... At home now and don't have the same version of Excel here (Mac). Will try in the morning.
Talking with someone who knows certainly helps Hoovie.
And YET again many thanks!! When's your birthday - will send you a nice 'present'
A1 = "Select Fruit"
A2= "Apple"
A2= "Pear"
A3 = "Plum"
etc. etc. The user does not change these indeed he does not even see them other than when he opens a pick list or combo-box. The list has the usual linked cell.
Now, when the application is first loaded, or after a 'reset' (same macro invoked) then the pick list/combo-box shows "Select Fruit".
I cannot see 'shuffling the deck' via a macro would work as we have no idea which item the pick list is 'pointing to'..... ummm .... thinks ....
Oh yes we do (silly me!). So what you saying is pick up the linked cell value and shuffle the strings to suit? I think I see what your getting at... At home now and don't have the same version of Excel here (Mac). Will try in the morning.
Talking with someone who knows certainly helps Hoovie.
And YET again many thanks!! When's your birthday - will send you a nice 'present'
Old Gits Know Best ... I think
IDontBelieveIt
- Hoovie
- Borders Bodger
- Posts: 8168
- Joined: Fri Jul 27, 2007 6:06 pm
- Location: Scottish Borders & East Devon
- Has thanked: 0
- Been thanked: 4 times
Think we are looking at the problem slightly differently to get the same answer
Now, when the application is first loaded, or after a 'reset' (same macro invoked) then the pick list/combo-box shows "Select Fruit".
Yes, indeed
I cannot see 'shuffling the deck' via a macro would work as we have no idea which item the pick list is 'pointing to'..... ummm .... thinks ....
Oh yes we do (silly me!). So what you saying is pick up the linked cell value and shuffle the strings to suit? I think I see what your getting at... At home now and don't have the same version of Excel here (Mac). Will try in the morning.
Because the default option is always the one in Cell A1 "Select Fruit", then a macro that essentially replaces whatever is in the pick list cell with the code "=A1" (or just the the string that Cell A1 contains - either way will work) will mean it (the pick list cell) will then say "Select Fruit" again as far as the user sees it

Now, when the application is first loaded, or after a 'reset' (same macro invoked) then the pick list/combo-box shows "Select Fruit".
Yes, indeed
I cannot see 'shuffling the deck' via a macro would work as we have no idea which item the pick list is 'pointing to'..... ummm .... thinks ....
Oh yes we do (silly me!). So what you saying is pick up the linked cell value and shuffle the strings to suit? I think I see what your getting at... At home now and don't have the same version of Excel here (Mac). Will try in the morning.
Because the default option is always the one in Cell A1 "Select Fruit", then a macro that essentially replaces whatever is in the pick list cell with the code "=A1" (or just the the string that Cell A1 contains - either way will work) will mean it (the pick list cell) will then say "Select Fruit" again as far as the user sees it

I went to a bookstore and asked the saleswoman, "Where's the self-help section?"
She said if she told me, it would defeat the purpose.
She said if she told me, it would defeat the purpose.
Hoovie
- thescruff
- Senior Member
- Posts: 49685
- Joined: Mon Mar 10, 2008 12:46 am
- Location: Bath
- Has thanked: 360 times
- Been thanked: 3735 times
thescruff
-
- Senior Member
- Posts: 2039
- Joined: Tue Jul 29, 2008 5:11 pm
- Location: North Hampshire
- Has thanked: 0
- Been thanked: 1 time
Post by IDontBelieveIt »
Agreed Hoovie - BUT the only 'problem' is that all other procedures that pick up the selected and picked item then have to scan the re-adjusted list to determine which items has been selected if you get my drift
Not a 'big deal' nor difficult just extra bit of coding. One would think that MS would make it easier by being able to force a value, as you can with items such as radio-buttons etc.
But thanks for giving me a "thought kick" - as you rightly say there are many ways to skin a cat.

Not a 'big deal' nor difficult just extra bit of coding. One would think that MS would make it easier by being able to force a value, as you can with items such as radio-buttons etc.
But thanks for giving me a "thought kick" - as you rightly say there are many ways to skin a cat.
Old Gits Know Best ... I think
IDontBelieveIt
- Hoovie
- Borders Bodger
- Posts: 8168
- Joined: Fri Jul 27, 2007 6:06 pm
- Location: Scottish Borders & East Devon
- Has thanked: 0
- Been thanked: 4 times
Yup - you may need to either call other subroutines to cycle through and refresh. If relavent, you could read the value in the cell first before resetting it and store it elsewhere and use it as need be
What I quite like to do sometimes is to have the use enter a value in one cell, but have other cells (which are hidden) deal with the data with appropriate formulae.
When you say 'force a value', that is of course possible with the data validation, by checking an option so once the user has gone into into, they cannot leave it blank
lots of ways to skin a DOG (not a cat
) and all depends on the task
. Not fully sure what your task at hand is, but no doubt you have sorted it.
I am only on my 4th workbook at the moment - 6 to go before I start phase II tonight


What I quite like to do sometimes is to have the use enter a value in one cell, but have other cells (which are hidden) deal with the data with appropriate formulae.
When you say 'force a value', that is of course possible with the data validation, by checking an option so once the user has gone into into, they cannot leave it blank
lots of ways to skin a DOG (not a cat


I am only on my 4th workbook at the moment - 6 to go before I start phase II tonight


I went to a bookstore and asked the saleswoman, "Where's the self-help section?"
She said if she told me, it would defeat the purpose.
She said if she told me, it would defeat the purpose.
Hoovie
-
- Senior Member
- Posts: 2039
- Joined: Tue Jul 29, 2008 5:11 pm
- Location: North Hampshire
- Has thanked: 0
- Been thanked: 1 time
Post by IDontBelieveIt »
Sorry Hoovie - what I meant by 'force' I mean a macro can directly clear or set a radio button ready for the user to make a selection (from a range of radio buttons, say). But, oddly, is unable to 'force' a pick list to to known and predefined state/selection. I can see the need for me to buy you a few pints to discuss these topics, quite hard using a forum.
Old Gits Know Best ... I think
IDontBelieveIt
- Hoovie
- Borders Bodger
- Posts: 8168
- Joined: Fri Jul 27, 2007 6:06 pm
- Location: Scottish Borders & East Devon
- Has thanked: 0
- Been thanked: 4 times
It is much easier when one person can show the other exactly what they mean :D
I don't often use radio buttons as my 'audience' are not that bright and only just understand cells! it is hard enough getting them to understand clicking a button to run a macro
Had enough for tonight - still have 4 books to do, but did a smart bit of forumula writing on the collation side where all the info feeds to (current suite of workbooks are VBA free and I needed to use some fancy formulas instead
)
I don't often use radio buttons as my 'audience' are not that bright and only just understand cells! it is hard enough getting them to understand clicking a button to run a macro

Had enough for tonight - still have 4 books to do, but did a smart bit of forumula writing on the collation side where all the info feeds to (current suite of workbooks are VBA free and I needed to use some fancy formulas instead

I went to a bookstore and asked the saleswoman, "Where's the self-help section?"
She said if she told me, it would defeat the purpose.
She said if she told me, it would defeat the purpose.
Hoovie
Jump to
- Ultimate Handyman DIY forum
- ↳ Welcome to the Ultimate Handyman DIY Forum
- WELCOME
- ↳ WELCOME
- ↳ About the forums
- UltimateHandyman Discounts
- ↳ Ultimatehandyman Discounts
- ULTIMATE HANDYMAN COMPETITIONS
- ↳ UHM Forum competitions
- SHOW CASE- A place to show us your work
- ↳ Show Case Gallery
- ↳ Rogues Gallery
- TOOL FORUM
- ↳ Power Tool Reviews
- ↳ Bosch
- ↳ budget power tools
- ↳ Dewalt
- ↳ Festool
- ↳ Hikoki/Hitachi
- ↳ Makita
- ↳ Metabo
- ↳ Milwaukee
- ↳ Ryobi
- ↳ Tool Talk
- ↳ Bargain Tools
- ↳ Hand tool reviews
- ↳ Power Tool Manuals
- ↳ Bosch
- ↳ Dolmar
- ↳ ELEKTRA BECKUM
- ↳ Hitachi
- ↳ Husqvarna
- ↳ Jonsered
- ↳ Makita
- ↳ Stihl
- Other DIY
- ↳ Computers
- ↳ communications and broadband
- ↳ Gardeners World
- ↳ Money Saving
- ↳ Vehicle maintenance & Repair
- ↳ Energy Saving
- DIY Forum/Home improvement
- ↳ General DIY forum
- ↳ Acrylic Forum
- ↳ DIY Disasters
- ↳ Stoves
- ↳ Building Forum
- ↳ Carpentry/Joinery Forum
- ↳ Kitchen Fitting
- ↳ Damp Proofing and Remedial problems
- ↳ Electric Forum UK
- ↳ Lighting
- ↳ Alarm Manuals
- ↳ Painting & Decorating Forum
- ↳ Plastering Forum
- ↳ Plumbing Forum
- ↳ Central Heating & Boilers
- ↳ Boiler Manuals
- ↳ Alpha
- ↳ Ariston
- ↳ ATAG
- ↳ Atmos
- ↳ Baxi
- ↳ Biasi
- ↳ Broag
- ↳ Chaffoteux
- ↳ Ferroli
- ↳ Glow-worm
- ↳ Halstead
- ↳ Ideal
- ↳ Intergas
- ↳ Keston
- ↳ Myson
- ↳ Potterton
- ↳ Protherm
- ↳ Ravenheat
- ↳ Saunier Duval
- ↳ Sime
- ↳ Thorn
- ↳ Vaillant
- ↳ Viessmann
- ↳ Vokera
- ↳ warmflow
- ↳ Worcester Bosch
- ↳ Shower Manuals
- ↳ Tiling Forum
- ↳ Metalworking Forum
- General
- ↳ The Lounge
- ↳ The games corner
- ↳ The Grumpy corner
- ↳ The Sport corner
- ↳ The Cookery corner
- ↳ The Music Corner
- ↳ BUY - SELL - FREE