+ Reply to Thread
Results 1 to 8 of 8

Formula in same row

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Formula in same row

    Hi,

    I am using following code to store data in the next row starting from row 7 everytime I save.

    Please Login or Register  to view this content.
    My problem is that I have a formula in collumn 6 that`s prevent the storing of data to start in row 7.
    When I save a date in collumn 5, collumn 6 will show the same date next year. Is it possible to fix this in the code I am allready using?

    Best regards

    Øystein

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula in same row

    Am not able to understand your question. Maybe you can help explain with the help of a sample file?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Re: Formula in same row

    Thanks for youre reply arlu,

    I have attached a samplefile and a PDF to explane what to do.
    You will also see the formulas I will use in collumn F and H.

    Regards
    Øystein

    Eksempelfil Utstyr.xlsmSample information.pdf

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula in same row

    You can calculate the lastrow using this
    Please Login or Register  to view this content.
    Then you can ask the code to populate the data from lastrow +1.

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Re: Formula in same row

    arlu1201,

    This will not solv my problem. The code I am using no is working perfect to save data on the next line, but I need it to start saving data from row 7 even when several cells in the same row contains data.

    Regards
    Øystein

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula in same row

    So each time you run the macro, it should only populate row 7 and overwrite the existing data?

  7. #7
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Re: Formula in same row

    Hi arlu,

    No, I need to save the data on the next row every time. But as long as I have a formula in one of the collumns as now, it will not start saving the data from row 7.

    Regards
    Øystein

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula in same row

    You need to calculate the lastrow using the column which does not have the formula. Then it will populate from row 7.

+ 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