Determine if a cell contains a telephone number based upon the fomat of the data.
Each month I receive an excel spreadsheet.
I then must manipulate the spreadsheet using some trivial VBA, in order to import data into an access database.
My question is how to select a row base upon the format of the contents of a cell .
For example, if column c contains several different formats of data and I am only interested in rows where the data in column c is formatted
nnn-nnn-nnnn, where n is number.
How do I do it??
I am trying to do something like
If Cells(i, 3).Format = "nnn-nnn-nnnn" Then
I know this is incorrect but hopefully it gives you an idea of what I am trying to do.
Any assistance you can provide is appreciatted!
Solutions to the Problem Determine if a cell contains a telephone number based upon the fomat of the data.
Try something like:
if cells(i,3).text Like "###-###-####" then
Since we are using the Text property, this should work whether the value is a formatted number, or a text string.
Use the System File Checker tool to repair corrupted or missing system files:
- Click Start.
- Type cmd, and then press CTRL+SHIFT+ENTER to open the elevated command prompt (I.e. Command prompt with administrative rights).
- The User Account Control window should appear, be sure that the action it exhibits is correct, and then press the Continue button.
- Type or copy paste the below command line into it without quotes:
- "Sfc /scannow"
Another Safe way to Fix the Problem: Determine if a cell contains a telephone number based upon the fomat of the data.:
How to Fix Determine if a cell contains a telephone number based upon the fomat of the data. with SmartPCFixer?
1. Click the button to download SmartPCFixer . Install it on your computer. Open it, and it will perform a scan for your computer. The junk files will be shown in the scan result.
2. After the scan is finished, you can see the errors and problems need to be repaired. Click Fix All.
3. The Repair part is finished, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in SmartPCFixer. Like dll downloading, windows updating and print spooler error repair.
Related: How to Update & Download NVidia GeForce 6100/nForce 420 WHQL Certified driver v.178.13,How to Update & Download NVidia GeForce 7600 GS Video Driver v.295.75 Certified,How Can I Update & Download NVidia GeForce 820M Driver v.344.48 WHQL,[Solved] Download NVidia GeForce GTX 560M VGA Driver v.296.17 Certified,Way to Update & Herunterladen NVidia GeForce GT 130M Video Treiber v.295.75 Certified,How to Update & Download SONY SVE14A1X1RH Realtek Ethernet Driver,Where to Download SONY SVS13A2W9ES Bluetooth Driver (Intel) v.2.6 - 184.108.40.206059,Best Way to Update & Download SONY VGN-CR203E Conexant HDAUDIO SoftV92 Data Fax Modem with SmartCP Setup Program v.220.127.116.11 driver,Best Way to Download SONY VGN-FE790G/N Wireless LAN Driver v.10.6.0.29,Method to Update & Download SONY VGN-NR31Z/S Firmware Extension Parser Device v.18.104.22.168,How to Fix Error 0x0000c1f5 Solución?,Error 0x80071a91 Win7 Fix Patch,Error 0x800ccc60 Windows Live Mail [Solved],Error Message 0x800ccc79 Outlook 2000 Fix,What is Error 0xc1ab0001?,[Answered] x64 saplugin dll,How to Fix Problem - Kb943729 Download?,Troubleshooting: Bccode D1 Error,Java Runtime Tech Support,Troubleshooting: ERROR NO SUCH GROUP Error
Read More: Desktop and Taskbar icons show up as a generic blank icons in Windows 7 Tech Support,How to Fix Problem - Desktop icons open with Adobe reader?,Fast Solution to Problem: denon midi controller usb issues,Fast Solution to Problem: Delay in Window 7 shutdown,decimal places to be affected by combo box selection