+ Reply to Thread
Results 1 to 4 of 4

Referencing cells based on a corresponding cell value

Hybrid View

  1. #1
    Registered User
    Join Date
    07-22-2008
    Location
    ctown
    Posts
    35

    Referencing cells based on a corresponding cell value

    I have a wksheet that acts a template invoice with a corresponding auto increment invoice #. I'm having problems referencing the values of the # of rentals and their corresponding pick up and drop off dates. I need these values to go into the inventory out sheet from each invoice that is saved.

    See attachment for further clarification.
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    It's not clear what you want to save
    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
    07-22-2008
    Location
    ctown
    Posts
    35
    I wasn't sure how to phrase the question, but if you look at the attached file you will see that there is an "invoice" with a save button which serves as a document to record all rentals from a rental program as well as the date of rental and the date of the reutrn of the rental.

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626

    some code maybe help

    Sorry i cannot write out all the code, the following one maybe can help you. you have to complete the code according to your company needs.

    Workbooks("autosaveinvoice").Worksheets("Inventory Out").Activate
      Range("A4").Select
      If Range("A4").Value = "" Then
      Range("A4").Activate
      Else
      Range("A4").CurrentRegion.Select
      ActiveCell.Offset(Selection.Rows.Count, 0).Activate
      End If
      With ActiveCell
      .Value = Worksheets("invoice").Range("c3").Value
      .Offset(0, 1).Value = Worksheets("invoice").Range("c4").Value
      .Offset(0, 2).Value = Worksheets("invoice").Range("c6").Value
      End With

+ 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. Replies: 15
    Last Post: 07-23-2008, 06:59 AM
  2. Referencing the formula from a cell
    By JChandler22 in forum Excel General
    Replies: 4
    Last Post: 07-11-2007, 10:02 AM
  3. Change cell background based on another cell
    By ssmith001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2007, 05:19 PM
  4. Replies: 2
    Last Post: 03-01-2007, 04:51 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