Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2020, 08:43 PM
Logit Logit is offline Deleted entire row, but numbering series gone wrong. Help me. Windows 10 Deleted entire row, but numbering series gone wrong. Help me. Office 2007
Expert
 
Join Date: Jan 2017
Posts: 591
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

.


By slightly editing the posted macro, you can achieve the goal you desire :

Code:
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
    Dim I As Integer
    I = 1
    Application.EnableEvents = False
    For I = 1 To 50
        Range("A" & I).Value = I - 1
    Next
    Application.EnableEvents = True
End Sub
The above is designed to delete one row at a time and still maintain the
correct numbering in your column. Your original post indicated you are
deleting one row at a time.

It has been a pleasure helping you. Stay healthy !
Reply With Quote
  #2  
Old 06-24-2020, 03:48 AM
kingston123 kingston123 is offline Deleted entire row, but numbering series gone wrong. Help me. Windows 10 Deleted entire row, but numbering series gone wrong. Help me. Office 2013
Advanced Beginner
Deleted entire row, but numbering series gone wrong. Help me.
 
Join Date: Sep 2018
Posts: 85
kingston123 is on a distinguished road
Default

Where should I enter this code? How to activate it?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Occurence appt invitees showing on entire series doresa69 Outlook 0 11-11-2016 01:32 PM
Deleted entire row, but numbering series gone wrong. Help me. Series numbering ericjowens Excel 2 09-03-2015 11:20 AM
deleted items in wrong mailbox Flip Outlook 2 03-12-2014 03:51 AM
Deleted entire row, but numbering series gone wrong. Help me. Header numbering is wrong Scaffold Word 2 02-13-2014 03:08 AM
Continue Auto Numbering Throughout Entire Presentation craigfu PowerPoint 3 05-04-2012 05:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft