Monday, September 26, 2016

Tech Support: delete the data in cell

delete the data in cell

Sub Test()
  Dim Data, NextRow As Range
  'Read in all values form the column
  Data = Range("D6:D15")
   'Transpose the array
  Data = WorksheetFunction.Transpose(Data)
   'Note: If we transpose data that has only one column, _
    WorksheetFunction.Transpose changes the dimensions of that _
    array!
   With Sheets(2)
    'Get the next empty row in column B in second sheet
    Set NextRow = .Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
     'Store values in a row
    NextRow.Resize(, UBound(Data)) = Data
    .Range("L" & NextRow.Row).Value = Now
  End With
End Sub
Above is the code given ,I want to delete the data entered in column D6:D15 once the datas  are placed in sheet2 after transposing as per the code.

Solutions to the Problem delete the data in cell

Download Error Fixer (Free)

Hi,
You will need to unprotect at runtime, delete the data then reprotect.
See changed code below and note that you must change the password to the correct one and also the password is case sensitive
Sub Test()
  Dim Data, NextRow As Range
  'Read in all values form the column
  Data = Range("D6:D15")
   'Transpose the array
  Data = WorksheetFunction.Transpose(Data)
   'Note: If we transpose data that has only one column, _
    WorksheetFunction.Transpose changes the dimensions of that _
    array!
   With Sheets(2)
    'Get the next empty row in column B in second sheet
    Set NextRow = .Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
     'Store values in a row
    NextRow.Resize(, UBound(Data)) = Data
    .Range("L" & NextRow.Row).Value = Now
  End With
  ActiveSheet.Unprotect Password:="Mypass"
  Range("D6:D15").ClearContents
  ActiveSheet.Protect Password:="Mypass"
End Sub

If this post answers your question, please mark it as the Answer.
Mike H

Using Windows troubleshooter:

  • Click on Search on Charm bar and type Troubleshooting. Click on the very first option.
  • A new window will open. Click View all from the left pane.
  • Scroll down to the bottom and click on Windows update.
  • Troubleshooter window for Windows update will pop up. Click on NEXT. It may ask you for administrative permission.
  • The troubleshooter will automatically detect problems and fix it.
  • Now, close this window and try download/install the app which was previously showing error.

Recommended Method to Fix the Problem: delete the data in cell:

How to Fix delete the data in cell with SmartPCFixer?

1. Click the button to download SmartPCFixer . Install it on your computer.  Run it, and it will scan your computer. The junk files will be shown in the list.

2. After the scan is done, you can see the errors and problems which need to be fixed.

3. The Fixing part is finished, the speed of your computer will be much higher than before and the errors have been fixed.


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 - 2.6.23.40059,Best Way to Update & Download SONY VGN-CR203E Conexant HDAUDIO SoftV92 Data Fax Modem with SmartCP Setup Program v.7.62.0.50 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.8.0.2.3,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: How to Resolve - Date formatting in a combo box (Excel 2007)?,Troubleshooter of Error: Dell keyboard problem,How Can I Fix - data execution prevention error?,How to Fix Problem - default gateway?,Tech Support: data execution error, quicktime

No comments:

Post a Comment