+ Reply to Thread
Results 1 to 4 of 4

Format a cell or column to insert instead of overwrite

  1. #1
    Registered User
    Join Date
    03-15-2018
    Location
    Michigan
    MS-Off Ver
    2010 Office
    Posts
    15

    Format a cell or column to insert instead of overwrite

    Hello,

    I was wondering if there is a code to help with this. I am trying to make an inventory type spreadsheet that allows for users to just open it and scan bar codes in. When they scan the bar code into a column, i don't want to it overwrite the previous values in the column, since my other inventory codes rely on a count in that column. Is there a way to make sure that when values are added to the top of the column that it does not overwrite what is already there and just adds to the top?

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Format a cell or column to insert instead of overwrite

    You could put something like this in the sheet's code module.
    If anything is written in row 1, everything is shifted down, with the new entry now in row 2.
    How to hook that in with your scanner we don't have enough information on.

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    03-15-2018
    Location
    Michigan
    MS-Off Ver
    2010 Office
    Posts
    15

    Re: Format a cell or column to insert instead of overwrite

    Okay, that is what I was looking for. The scanner just adds the values like typing it into the cell, so hopefully that will not be a problem.

    I am fairly new to VBA though, and I was wondering if you could help me decipher what values to change in this code to have it work for me. Thank you for you help.

  4. #4
    Registered User
    Join Date
    03-15-2018
    Location
    Michigan
    MS-Off Ver
    2010 Office
    Posts
    15

    Re: Format a cell or column to insert instead of overwrite

    Never mind, I figured out that I just need to change the 1. But I have two other unexpected problems with it.

    1. It is adding shading behind the values once they are added that I would like to get rid of

    2. After entering the value, I would like the input to stay in the first box that the values were being entered into (which I did not previously say) so that values can just be added to the list.

+ 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. [SOLVED] Copy/Paste from a Filtered Range and Insert copied data NOT overwrite
    By Simon.Ward in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-12-2013, 11:14 AM
  2. Copy and Paste from an AutoFilter but Insert rows not Overwrite
    By Simon.Ward in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2013, 12:43 PM
  3. [SOLVED] Overwrite row (using copy and paste) based on cell value in a column
    By FunctionalHippie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2013, 01:26 PM
  4. Overwrite row (using copy and paste) based on cell value in a column
    By FunctionalHippie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2013, 01:16 PM
  5. Expand Table - Insert w/o overwrite
    By Phoenix5794 in forum Excel General
    Replies: 1
    Last Post: 08-23-2012, 01:48 PM
  6. Prevent data cell overwrite but allow blank cell overwrite
    By Squasher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2011, 09:24 AM
  7. insert column default format same as right
    By beginnerbob in forum Excel General
    Replies: 2
    Last Post: 08-20-2007, 07:20 PM

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