Delete set of row based on user input.
I have wrote macros to delete rows, based on user input, if input is 4 it will delete 3 rows.
While input is 1 then, I am getting error,
What I want is if input is 1, delete option to cancel how can do this,
Below is the code:
Private Sub CommandButton1_Click()
Dim startrno As String
startrno = InputBox(Prompt:="Enter the starting Row numnber.", _
Title:="ENTER the starting row number", Default:="1")
If startrno = "" Then
MsgBox ("Enter Starting row number")
Exit Sub
Else
ActiveSheet.Range("A1:a" & startrno - 1).EntireRow.Delete
End If
End Sub
thanks,
Chandru
Keys to the Problem Delete set of row based on user input.
Download SmartPCFixer to Fix It (Free)
- Download the Microsoft Windows ISO (installation device) from the following website:
- http://www.microsoft.com/en-us/software-download/windows10
- Users must select the appropriate ISO, either 32 bit or 64 bit, depending upon their individual computer.
- Extract the ISO file to a separate USB device or burn the program to a compact disc.
- Run the Microsoft Windows 10 upgrade directly from the software that you have thus created.
Recommended Method to Fix the Problem: Delete set of row based on user input.:
How to Fix Delete set of row based on user input. with SmartPCFixer?
1. You can Download SmartPCFixer here. Install it on your system. When you open SmartPCFixer, it will perform a scan.
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 Can You Fix - Data table in bar chart?,Tech Support: Desktop Icon issue - large,WLAN icon appears on desktop,How Can You Fix - Cut first 5 characters in column?,How Can You Fix - Cursor won't move to the top of the page. In align, top is grayed out.?,Solution to Problem: Data source to cover many sheets.
No comments:
Post a Comment