+ Reply to Thread
Results 1 to 7 of 7

A question regarding

Hybrid View

jobro A question regarding forms 04-23-2008, 04:27 AM
royUK Welcome to the Forum. You... 04-23-2008, 04:50 AM
jobro Thanks, I'm on quite a... 04-23-2008, 05:09 AM
royUK Which version of Excel are... 04-23-2008, 07:35 AM
jobro I'm using Excel 2003. No... 04-23-2008, 08:39 AM
  1. #1
    Registered User
    Join Date
    04-23-2008
    Posts
    10

    A question regarding forms

    So we're working on a pricelist that gives the end user a very easy way to lookup prices on the fly and get the money a customer needs to pay. So on sheet 1 we've got the items and the prices in their respective columns.

    There is an userform aswell. In that form I've got a list linked to a the item names. That much is easy done. Now I've got in the same form a textbox that needs to be updated with the correct item chosen.

    For this I've used the following code:
    Me.Vara2.Text = Cells(lCrow + Vara1.ListIndex, 5).Value
    that does give me an error that I'm using Me faulty.

    Check the attachment xls file for more information.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by jobro; 04-23-2008 at 05:28 AM. Reason: Setting things straight what I need help with.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Welcome to the Forum.

    You must read the Forum Rules & follow them, in this case your thread title needs editing. Click the link in my signature.

    In addition, you must explain more thoroughly what you are doing. We need to know what kind of form, popup menu & textbox you are using.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-23-2008
    Posts
    10
    Thanks, I'm on quite a speeded office. And hence I had no chance to alter it before I submitted the topic, so my bad on that one. I'll struggle to get better.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Which version of Excel are you using & why use a Dialog Sheet instead of a UserForm?

  5. #5
    Registered User
    Join Date
    04-23-2008
    Posts
    10
    I'm using Excel 2003. No access to userforms AFAIK.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    UserForms are standard and replaced Dialog Sheets. Open the VB Editor(Alt F11) and from the insert menu choose UserForm. You can then add the controls that you need.

    Take a look at the example daatbase form here

    http://www.excel-it.com/vba_examples.htm

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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