• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Delete from Code: the last progressive number entered in Column (A :) - If the last data item in Column (B :) is deleted|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Delete from Code: the last progressive number entered in Column (A :) - If the last data item in Column (B :) is deleted|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosDelete from Code: the last progress…
sp_PrintTopic sp_TopicIcon
Delete from Code: the last progressive number entered in Column (A :) - If the last data item in Column (B :) is deleted
Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
1
May 15, 2019 - 2:34 am
sp_Permalink sp_Print

Hi everyone, my name is Maurizio
And my Problem is this:
On the Excel sheet I have inserted a button that recalls the function of entering a progressive number in the column (A) provided that the column (B) there is any data;
And so far everything is ok
Ahora what I would try to do: It would be to have a code, which knows how to evaluate whether the last data entered in column (B) is equal to "Zero" or "One".
I'll explain :
1) Then I said that if I write any data (Numerical or Alphanumeric) that is; In the Column (B)
In Column (A) a progressive number is entered!
2) On the contrary, if I eliminate the last data entered in column (B), the number that appears in column (A) continues to remain there in its place; While I would like it to disappear, ("") all here.
It looks like an easy thing to solve
But I can't do it.
Thanks for all the help you want to give me about it; Greetings from A. Maurizio

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
May 22, 2019 - 11:16 pm
sp_Permalink sp_Print

Hi Maurizio,

Your code already inserts numbers into Col A as you wish, so what you need is for some code to delete a number from Col A if the data in the same row in Col B is deleted?

If you want to do that as soon as the data in Col B is deleted you can use an event to clear the data from Col A.

Regards

Phil

Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
3
May 29, 2019 - 4:49 am
sp_Permalink sp_Print

Hi Philip Treacy Sorry if I answer you just now; But I was taken with problems of familiar character.
Having said that Even though I didn't understand very well what you wrote.
Not only do I thank you for your interest.
But I also want to tell you that by dint of doing tests on evidence; I then managed to solve my problem.
And always for your fairness to you I offer you my Project.
Thanks again for everything, but it is true that the practice is the best school in the world.
Hello and to the Next

Thank you !!!!!!

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Jeff Krueger, Shanna Henseler
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.