hi. i would like to create an inputbox that shows the existing formula in a selected cell and from the inputbox i too can edit the formula. can this be ok?? Thanks.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
inputbox that shows formula & edit formula purpose (excel 2002)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » inputbox that shows formula & edit formula purpose (excel 2002)
- This topic has 26 replies, 4 voices, and was last updated 20 years, 4 months ago.
Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody Lounger -
WSboat
AskWoody Lounger -
WSHansV
AskWoody LoungerNovember 8, 2004 at 12:49 pm #896969This code isa only a small variation on my reply to your post 423089 from last week. If you click in the word InputBox (in the Visual Basic Editor) and press F1, you’ll get help for this method, and an example. You can use the online help to learn how to adapt the code further.
-
WSHansV
AskWoody LoungerNovember 8, 2004 at 12:49 pm #896970This code isa only a small variation on my reply to your post 423089 from last week. If you click in the word InputBox (in the Visual Basic Editor) and press F1, you’ll get help for this method, and an example. You can use the online help to learn how to adapt the code further.
-
WSboat
AskWoody Lounger -
WSHansV
AskWoody LoungerNovember 8, 2004 at 1:42 pm #896985The online help is installed as part of Microsoft Office. You can obtain help in several ways in the Visual Basic Editor:
– Select Help | Microsoft Visual Basic Help.
– Click in a word in a module, and press F1.
– Activate the Object Browser (F2), enter a search term, press Enter, click on one of the listed items, press F1. -
WSboat
AskWoody LoungerNovember 8, 2004 at 4:35 pm #897065Hi Hans. Thanks. now i realise the comma marks in the InputBox() are the 8 information input into the dialog box. and the real input by the user is the Default info and its Type is goes with the Default info. others are optional with compulsory wordings in the Prompt info. Thanks.
about the inputbox, where i edit my formula, without clicking the formula with mouse at the place i desire to edit, can the edit function be done with by typing any keys relevent in the keyboard? any keyboard keys can too edit my formula in the input dialog box without using mouse? the formula displayed at active cell is auto highlighted with black color and if i hit left,right,top, or bottom, it won’t be right. any keys to edit without disturbing the original formula?
Thanks again. -
WSHansV
AskWoody Lounger -
WSboat
AskWoody LoungerNovember 12, 2004 at 3:57 pm #899178Hi Hans. yes, i can explain again about using keyboard to edit inputbox. when the inputbox appears in my pc screen asking to edit formula, i have to edit by clicking the place i want to edit using mouse. i cannot find ways to edit using keyboard. with keyboard, i can move to left and right freely to edit my formula in inputbox. with mouse, i can edit my formula by clicking at the exact place i want to edit because if i move the cursor with keyboard, the formula gets edited of unwanted cells address. with long formula that extends unseen in the display inputbox, editing using mouse can be with some extra efforts, like i edit a ‘dummy’ key at the end of the inputbox to get the remaining formula seen and delete the dummy key later before real editing comes in. i hope my explanation makes sense. thanks. bye.
-
WSboat
AskWoody LoungerNovember 12, 2004 at 3:57 pm #899179Hi Hans. yes, i can explain again about using keyboard to edit inputbox. when the inputbox appears in my pc screen asking to edit formula, i have to edit by clicking the place i want to edit using mouse. i cannot find ways to edit using keyboard. with keyboard, i can move to left and right freely to edit my formula in inputbox. with mouse, i can edit my formula by clicking at the exact place i want to edit because if i move the cursor with keyboard, the formula gets edited of unwanted cells address. with long formula that extends unseen in the display inputbox, editing using mouse can be with some extra efforts, like i edit a ‘dummy’ key at the end of the inputbox to get the remaining formula seen and delete the dummy key later before real editing comes in. i hope my explanation makes sense. thanks. bye.
-
WSHansV
AskWoody LoungerNovember 13, 2004 at 2:19 pm #899535Perhaps you should change
varResult = Application.InputBox(“Edit the formula”, , ActiveCell.Formula, , , , , 0)
to
varResult = InputBox(“Edit the formula”, , ActiveCell.Formula)
You will lose the ability to use the mouse to point to cells, but you can use the keyboard, including the arrow keys.
-
WSboat
AskWoody Lounger -
WSboat
AskWoody Lounger -
WSHansV
AskWoody LoungerNovember 13, 2004 at 2:19 pm #899536Perhaps you should change
varResult = Application.InputBox(“Edit the formula”, , ActiveCell.Formula, , , , , 0)
to
varResult = InputBox(“Edit the formula”, , ActiveCell.Formula)
You will lose the ability to use the mouse to point to cells, but you can use the keyboard, including the arrow keys.
-
WSHansV
AskWoody Lounger -
Andrew Lockton
AskWoody_MVPNovember 9, 2004 at 9:56 pm #897615Boat
The inputbox command that Hans has suggested is modeless so using the keyboard is either going to wipe the current selection or move around the excell cells in the background. I couldn’t find a way to unselect the formula (without the mouse) in the inputbox dialog so I think you may have to find another way to display the cell contents.
Is there a reason you don’t want to use the formula bar to edit the cell contents?
-
WSboat
AskWoody LoungerNovember 12, 2004 at 10:59 am #898978hi Andrew. Thanks for your reply. yes, i understand. your experience same with me. since i use the macros, (about 30 minutes run macros), i use keyboard shortcut to use them, i press Alt + a small letter key to run macro, writing formulas using keyboard, copy&paste function use keyboard, except editing formulas (using the mouse require point the cursor at end of formula, which i realise the formula gets unseen in the inputbox since it is long. so what do i do to edit the formula? i point mouse cursor at the end of inputbox where there is first part of whole formula, press ‘+’ sign to get the ‘behind’ part formula, delete the “+” sign, use mouse carefully precise cursor at end formula and & use keyboard to key formula). and i realise using keyboard to edit formula in inputbox (if that realised) i can move right left cursor freely).
i use keyboard, in fact faster i realise. and have fingers exercise. (my hand feels stiff using mouse, and gets warm holding it longer, especially there is one optical). THANKS. any suggestion? THANKS.
-
WSboat
AskWoody LoungerNovember 12, 2004 at 10:59 am #898979hi Andrew. Thanks for your reply. yes, i understand. your experience same with me. since i use the macros, (about 30 minutes run macros), i use keyboard shortcut to use them, i press Alt + a small letter key to run macro, writing formulas using keyboard, copy&paste function use keyboard, except editing formulas (using the mouse require point the cursor at end of formula, which i realise the formula gets unseen in the inputbox since it is long. so what do i do to edit the formula? i point mouse cursor at the end of inputbox where there is first part of whole formula, press ‘+’ sign to get the ‘behind’ part formula, delete the “+” sign, use mouse carefully precise cursor at end formula and & use keyboard to key formula). and i realise using keyboard to edit formula in inputbox (if that realised) i can move right left cursor freely).
i use keyboard, in fact faster i realise. and have fingers exercise. (my hand feels stiff using mouse, and gets warm holding it longer, especially there is one optical). THANKS. any suggestion? THANKS.
-
Andrew Lockton
AskWoody_MVPNovember 9, 2004 at 9:56 pm #897616Boat
The inputbox command that Hans has suggested is modeless so using the keyboard is either going to wipe the current selection or move around the excell cells in the background. I couldn’t find a way to unselect the formula (without the mouse) in the inputbox dialog so I think you may have to find another way to display the cell contents.
Is there a reason you don’t want to use the formula bar to edit the cell contents?
-
WSpieter
AskWoody LoungerNovember 11, 2004 at 10:17 am #898451 -
WSboat
AskWoody Lounger -
WSboat
AskWoody Lounger -
WSpieter
AskWoody LoungerNovember 11, 2004 at 10:17 am #898452 -
WSHansV
AskWoody LoungerNovember 8, 2004 at 1:42 pm #896986The online help is installed as part of Microsoft Office. You can obtain help in several ways in the Visual Basic Editor:
– Select Help | Microsoft Visual Basic Help.
– Click in a word in a module, and press F1.
– Activate the Object Browser (F2), enter a search term, press Enter, click on one of the listed items, press F1.
-
-
WSboat
AskWoody Lounger
-
-
-
WSboat
AskWoody Lounger
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
15 minutes ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
8 hours, 51 minutes ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
42 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
17 hours, 40 minutes ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
3 hours, 53 minutes ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
1 day, 19 hours ago -
50 years and counting
by
Susan Bradley
7 hours, 27 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 day, 2 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
2 days, 6 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
2 days, 6 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
2 days, 6 hours ago -
OneNote and MS Word 365
by
CWBillow
2 days, 8 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
2 days, 8 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
2 days, 8 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
24 minutes ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
2 days, 20 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
2 days, 20 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
3 days, 5 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
2 days, 17 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
1 day, 18 hours ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
3 days, 14 hours ago -
Apple backports fixes
by
Susan Bradley
2 days, 21 hours ago -
Win 11 24H2 will not install
by
Michael1950
1 day, 18 hours ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
12 hours, 28 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
2 days, 3 hours ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
14 hours, 56 minutes ago -
Get back ” Open With” in context menus
by
CWBillow
4 days, 5 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
2 days, 21 hours ago -
simple general stupid question
by
WSaltamirano
4 days, 3 hours ago -
April 2025 Office non-Security updates
by
PKCano
4 days, 20 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.