Results 1 to 3 of 3

User Form with Empty row but user may enter data manually

Threaded View

  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    19

    User Form with Empty row but user may enter data manually

    I am very new to VBA and am trying to put together a user form (Learned to make one this week). The worksheet that it is populating I don't want to be overwritten when the user has manually entered something. They are scanning a huge barcode that I break apart to use, to populate other cells as well as Vlookup to get additional items. I enter the data from the userform in the first three columns, which I hide to the user, and an additional six are hidden. The first column the user sees is Column "I" which is where they may enter information that I want the user form to see and skip. The cells in column "I" also contain a formula to return a value from one of the hidden columns. There are time they will need to manually enter, and this is sporadically throughout the day.

    This is what I have

    '
    Make USAGE active
    Sheet5.Activate
    
    'Determine emptyRow
    emptyRow = WorksheetFunction.CountA(Range("A:A")) + 1
    
    'Transfer information
    Cells(emptyRow, 1).Value = SerialTextBox.Value
    Cells(emptyRow, 2).Value = GtinTextBox.Value
    Cells(emptyRow, 3).Value = VatTextBox.Value
    
    End Sub
    Last edited by Fotis1991; 12-07-2015 at 11:37 AM. Reason: Pls be sure that you add code tags to your codes when you post these. Thank you!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to prevent user to enter serial number in column B manually
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-27-2015, 09:50 AM
  2. Find the first empty row for User Data Entry form
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2014, 06:59 PM
  3. Replies: 3
    Last Post: 02-14-2014, 12:23 PM
  4. User form to post data and charts according to user defined selections
    By siroco79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 11:16 AM
  5. Enter data in locked cell from user form
    By ajitexcel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-18-2012, 10:21 AM
  6. [SOLVED] User forms - choosing location of your data to be shown in your user form
    By jasonbwt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2012, 08:48 AM
  7. How To Enter A Value To A Cell With A User Form??
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-08-2008, 11:20 AM

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