+ Reply to Thread
Results 1 to 2 of 2

add lines with changing formulas depending on lines in another worksheet

  1. #1
    Registered User
    Join Date
    01-27-2015
    Location
    Chester, England
    MS-Off Ver
    2010
    Posts
    11

    add lines with changing formulas depending on lines in another worksheet

    Hi everybody,

    I'm new here and currently and Apprentice and trying to make a spreadsheet (in the works) more automated before release.
    Basically I have a Spreadsheet called "upload" (within that i have a "upload sheet" and "today" sheet and another called "today"
    I have macros in place that will copy the entire "today" sheet out of the "today" workbook and copy it into the "today" sheet within the "upload workbook"
    The info is then being pulled from the Today sheet to the Upload sheet e.g. via "=Today!E5" etc
    The first sheet only has 5 rows though and my issue is, I want to add the same ammount of lines into the "upload" sheet as there are in the "today".
    But at the same time I want to add the formula into the newly added lines, so that if there is 20 lines in "today" it will look between lines 5-XXX, find that after 25 there are no more entries (both start at line 5)
    It will thenn add lines on the "upload" with the correct formulas (=Today!E5 to =Today!E25 for this example)
    I never went into this kind of depth in Highschool so I am pretty lost, don't even know if it will work,
    I would very much appreciate your help

    Also note the workbook with only "today" becomes irrelivant after it is pasted into the upload (it is saved with the date as reference) and the upload sheet will only be used to upload to another system and then NOT saved to be used again the day after


    P.S. please let me know if I am not being clear or you need any more info/the workbook itself

  2. #2
    Registered User
    Join Date
    01-27-2015
    Location
    Chester, England
    MS-Off Ver
    2010
    Posts
    11

    Re: add lines with changing formulas depending on lines in another worksheet

    Just been looking round myself again.
    I guess the easiet way would be to select the row below last row in "upload"
    Inset line
    Fill down
    how would I get the macro to look at the last line though?
    (note that at the end of the template is a note saying "Tip: This is not the end of the Template. Unprotect the sheet and insert as many rows as needed."
    I'd like to keep that as I have a "show lines" in place which will hide all current lines up until "Tip: This is not the end of the Template. Unprotect the sheet and insert as many rows as needed."

+ 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] Macro neede to open text files from folder and remove all the lines except specific lines
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-07-2014, 02:44 AM
  2. [SOLVED] Macro to Delete useless lines, rearrange by dates and skip lines between different days.
    By Tmc2159 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-12-2012, 02:15 PM
  3. Show or hide several lines depending on 1 cell.
    By Simon-ch in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-19-2008, 12:47 PM
  4. [SOLVED] Inserting Lines or Copying lines with formulas but without data
    By wnfisba in forum Excel General
    Replies: 2
    Last Post: 08-18-2006, 11:41 AM
  5. [SOLVED] How do i insert lines into a worksheet depending on if data exist.
    By Nutter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2005, 12:06 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