Monday, September 26, 2016

[Anwsered] Deleting row number specified by formula

Deleting row number specified by formula

Hi All,
I'm trying to figure out how to create macro which will delete a row with number calculated by formula (formula is based on MATCH function).
I have one cell in Sheet1
which calculates the row number of a row in Sheet2 which meets specified criteria, and I need to be able to delete that row with a macro.
I tried to record macro (I'm new to VBA), and then modify it, but I failed.
Below is how VBA recorded selecting and deleting row:
Rows ("1:1").
Selection.delete Shift:=xlUp
And below is one of the ways I tried to achieve what I needed 
x = Worksheets("Sheet1").Range("D1").Value
Rows("x:x").Select ' here it says there was an application-defined or object-defined error
Selection.delete Shift:=xlUp
Whenever I try to put anything but numbers in Rows("..:..") I get an error either the above or a type mismatch
I've spent quite a lot of time trying to figure that out, but I can't find it in my books.
I will appreciate any help.


Solutions to the Problem Deleting row number specified by formula

Download SmartPCFixer for Free Now

x = Worksheets("Sheet1").Range("D1").Value
Cells(x, 1).EntireRow.Delete

Note: It is recommended that you back up your files and folders before attempting this step:

  • Move the mouse cursor over to the upper right side of the screen.
  • A menu will pop up on the left. Click on the "Settings" feature on the menu.
  • On the Settings window, click on the "Change PC settings."
  • Now, left click on the "Update and recovery" feature.
  • For the next step, left click on the "Recovery" feature.
  • There is an option here saying "Refresh your PC without affecting your files." There, left click on the "Get started" button.
  • Now, follow the instructions on the screen to finish the Refresh process.
  • After the Refresh process has finished restart your Windows 8.1 or Windows 8 device.
  • Check again to see if the error Deleting row number specified by formula has been fixed.

If you do not possess the technical expertise required to accomplish this yourself or do not feel comfortable doing so, download and install a powerful automated tool to get the job done.

Recommended Method to Fix the Problem: Deleting row number specified by formula:

How to Fix Deleting row number specified by formula with SmartPCFixer?

1. Download Error Fixer. Install it on your computer.

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

3. When the Fixing part is done, your computer has been speeded up 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 -,Best Way to Update & Download SONY VGN-CR203E Conexant HDAUDIO SoftV92 Data Fax Modem with SmartCP Setup Program v. driver,Best Way to Download SONY VGN-FE790G/N Wireless LAN Driver v.,Method to Update & Download SONY VGN-NR31Z/S Firmware Extension Parser Device v.,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: Database function formulas generate incorrect results [Solved],Troubleshooting:Data files tab shows no data file in Outlook 2013 (64-bit) Error,Troubleshoot:Dates not appearing properly in combo box,Troubleshooting:Deleting email messages using outlook express,Troubleshooting:Customizing My Msn page Error

No comments:

Post a Comment