Can you fill a cell with default text?
I am trying to insert some default text into a cell so if nothing is entered by the user, it shows my text.
the text I would like to show is 'none' without the quotes. When the user enters text then it will overwrite my default text but when they delete
their text it will again show the default text 'none'.
Solutions to the Problem Can you fill a cell with default text?
Chee is correct, this can't be done without code.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Application.EnableEvents = False
Set isect = Application.Intersect(Target, Range("A1:C10"))
If Not isect Is Nothing Then
If Target = "" Then Target = "None"
Application.EnableEvents = True
Change the range A1:C10 to suit the area where you have your cells for the user to enter into
To add this code to your file, press Alt+F11,
2. In the VBAProject window, top left side, find your sheet name under your file name and double click it.
3. Paste in or type the code above.
If this answer solves your problem, please check Mark as Answered.
If this answer helps, please click the Vote as Helpful button.
Cheers, Shane Devenshire
Manually editing the Windows registry
Manually editing the Windows registry to remove invalid MACHINE_CHECK_EXCEPTION keys is not recommended unless you are PC service professional. Incorrectly editing your registry can stop your PC from functioning and create irreversible damage to your operating system. In fact, one misplaced comma can prevent your PC from booting entirely!
Caution: Unless you an advanced PC user, we DO NOT recommend editing the Windows registry manually. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. We do not guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
To manually repair your Windows registry, first you need to create a backup by exporting a portion of the registry related to MACHINE_CHECK_EXCEPTION (eg. Windows Operating System):
- Click the Start button.
- Type "command" in the search box... DO NOT hit ENTER yet!
- While holding CTRL-Shift on your keyboard, hit ENTER.
- You will be prompted with a permission dialog box.
- Click Yes.
- A black box will open with a blinking cursor.
- Type "regedit" and hit ENTER.
- In the Registry Editor, select the Error 0x9C-related key (eg. Windows Operating System) you want to back up.
- From the File menu, choose Export.
- In the Save In list, select the folder where you want to save the Windows Operating System backup key.
- In the File Name box, type a name for your backup file, such as "Windows Operating System Backup".
- In the Export Range box, be sure that "Selected branch" is selected.
- Click Save.
- The file is then saved with a .reg file extension.
- You now have a backup of your MACHINE_CHECK_EXCEPTION-related registry entry.
Another Safe way to Repair the Problem: Can you fill a cell with default text?:
How to Fix Can you fill a cell with default text? with SmartPCFixer?
1. You can Download Error Fixer here. Install it on your computer. When you open SmartPCFixer, it will perform a scan.
2. After the scan is finished, you can see the errors and problems which need to be fixed.
3. When the Fixing part is finished, your computer has been speeded up and the errors have been removed
Related: How to Download Toshiba Satellite A205-S5833 Supervisor Password Utility v.126.96.36.199C r2 driver,How to Download Toshiba Satellite C675-S7104 Laptop Checkup v.188.8.131.52 driver,How Can I Update & Download Toshiba Satellite L655-S5117 Face Recognition v.3.1.3 driver,Method to Update & Download Toshiba Satellite L845D-SP4328KL Atheros LAN Driver v.184.108.40.206,How to Update & Download Toshiba Satellite R930 Network Device ID Registry Setting Tool v.220.127.116.11 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.18.104.22.16886,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.22.214.171.1240,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.126.96.36.1999,Method to Update & Download ASUS K41VD Intel INF Update Driver v.188.8.131.525,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: Fast Solution to Error: Can I send a JPEG file in a PDF form ?,How Can I Fix - Can one use Microsoft Outlook 2007 on a PC that has Windows 7 64-bit format??,[Solved] Can't access certain programs when looged in under different user accounts,[Solved] Can you repeat 2 rows of a table over pages?,Troubleshooter of Error: Can't connect to a domain controller...,Can I safely remove earlier versions on my pc,Can I rotate a graph so it shows on my page sideways?,Can I safely ignore Office file validation alert message?,Can I send a JPEG file in a PDF form ?,can I review when my computer has been accessed from outside my home?