+ Reply to Thread
Results 1 to 4 of 4

VBA Problem: How to call the last number typed in each line but in different columns

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    Brazil
    MS-Off Ver
    MS Office
    Posts
    6

    Question VBA Problem: How to call the last number typed in each line but in different columns

    Hello Friends!

    Here is my problem so you can understand... I have products in inventory (lines) and the days of the month (columns), my need is to have the last quantity of product registered by the system at the end of the period, but here is the catch, the system updates the inventory in different periods for each type of product.
    I have almost 350 products so I will need to have a loop or something like that at the end of the script...

    At the moment I thought to do trough: select cell K3 > type SUM > select the left cell, and press Ctrl + Shift + Left > enter...
    But how can I automate this process and repeat it for every line?

    If someone could type the VBA script here, I would appreciate it a lot!

    Hugs!Capturar2.JPG
    Last edited by Guilherme.Cristofoli; 08-18-2020 at 05:06 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,860

    Re: VBA Problem: How to call the last number typed in each line but in different columns

    Is there any reason you want to do this with VBA? If you put this formula in column H you won't need VBA:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy down.

  3. #3
    Registered User
    Join Date
    04-13-2020
    Location
    Brazil
    MS-Off Ver
    MS Office
    Posts
    6

    Thumbs up Re: VBA Problem: How to call the last number typed in each line but in different columns

    Man! You saved me! Thank you very much!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,860

    Re: VBA Problem: How to call the last number typed in each line but in different columns

    You are very welcome, and thanks for the rep!



    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to count number of blank cells on a column up to a number value is typed
    By carlosnixon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2018, 02:46 AM
  2. how to count number of blank cells on a column up to a number value is typed
    By carlosnixon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-25-2018, 01:01 AM
  3. [SOLVED] Typed data convert to columns
    By makinmomb in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-03-2015, 01:13 AM
  4. [SOLVED] Converting an avg value to a whole number next to the avg as if it were typed in.
    By Steve113 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2013, 10:35 PM
  5. [SOLVED] Is there a maximum number of columns available to put into a line graph?
    By Luch in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 09-18-2012, 12:52 PM
  6. Specify range of cells including spaces, manually typed text and line breaks in VBA
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2012, 12:59 AM
  7. [SOLVED] toolbar line see what you have typed
    By Tinkerbell in forum Excel General
    Replies: 2
    Last Post: 10-28-2005, 10:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1