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.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
53 minutes ago -
Get back ” Open With” in context menus
by
CWBillow
1 hour, 18 minutes ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
5 hours, 5 minutes ago -
simple general stupid question
by
WSaltamirano
2 hours, 27 minutes ago -
Automatic Toggle code for pages and bookmarks for Table of Content (Awaiting moderation)
by
switchtolinux
9 hours, 27 minutes ago -
April 2025 Office non-Security updates
by
PKCano
1 hour, 11 minutes ago -
Microsoft wants to hear from you
by
Will Fastie
17 hours, 19 minutes ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
19 hours, 40 minutes ago -
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
1 day, 1 hour ago -
Test post
by
Susan Bradley
1 day, 3 hours ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
1 day, 5 hours ago -
SSD shuts down on its own
by
CWBillow
20 hours, 30 minutes ago -
OneDrive File Sharing Changes
by
David Clark
1 day, 13 hours ago -
OneDrive File Sharing Changes
by
David Clark
1 day, 15 hours ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
15 hours, 16 minutes ago -
Today is world backup day
by
Alex5723
1 day, 6 hours ago -
Windows .exe on Mint
by
Slowpoke47
1 day, 16 hours ago -
Reviewing your licensing options
by
Susan Bradley
1 day, 2 hours ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
12 hours, 3 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
7 hours, 54 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
9 hours, 14 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
1 day, 13 hours ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
1 day, 10 hours ago -
YouTube Ad Blocker Blocker
by
bbearren
1 day, 11 hours ago -
Obscure historical facts about Windows
by
Cybertooth
1 day, 12 hours ago -
Microsoft Backup
by
Linda2019
1 day, 4 hours ago -
What is the best notepad++ version for W7?
by
Picky
1 day, 11 hours ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
2 days, 21 hours ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
2 days, 21 hours ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
3 days, 16 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
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.