+ Reply to Thread
Results 1 to 5 of 5

VBA copy down formulas to next blank row only works with manual entries ?

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Lancashire
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    10

    VBA copy down formulas to next blank row only works with manual entries ?

    I have a spreadhseet with som VBA code to copy down formulas in a number of columns to every row with data in column A - I have run into a bit of trouble as the data in column A either comes from a userform or is copied and pasted from another seperate worksheet - I have tried my code with it set on Worksheet_Change(ByVal Target As Range) event and works when userform writes new entry , however when the information comes from the other worksheet , this doesnt work unless I manually click my mouse into the last entry then press enter

    Anyone got any ideas how I can make my code work regardless of the method of entry of the data, i tried re-wrting the code to work on worksheet activate and activating it after my copy from another workbook code has run but again this only works if I manually click on my data sheet

    I am only new to VBA so got a bit stuck on what is probably a simple issue , tried searching for the answer to this but to no avail

    Please Login or Register  to view this content.
    thanks in advance

    trubster

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Which worksheet is the Change event in?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Lancashire
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    10

    Re: VBA copy down formulas to next blank row only works with manual entries ?

    It is in a worksheet called "data" in my workbook

    Thanks trubster

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA copy down formulas to next blank row only works with manual entries ?

    Is that the worksheet you want to copy the formulas down in?

  5. #5
    Registered User
    Join Date
    08-03-2012
    Location
    Lancashire
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    10

    Re: VBA copy down formulas to next blank row only works with manual entries ?

    Yes - what i was trying to do was whenever a new entry was added to the data in column A on the "data" sheet , no matter where it came from then the formula copied down in the adjacent columns to save me using formulas in the columns to check if entry was there i.e = if(a2="","",A2*100) as these take up memory regardles of the data so wanted it to dynamically add the formula as the entries grow as the end user of the sheet will not be excel proficient so will not think to copy formulas down manually.

    thanks

+ 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. formulas only copy to first blank row not range of blanks
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2013, 09:47 PM
  2. Copy and paste values into next sheet. (blank cells contain formulas)
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2013, 06:54 AM
  3. [SOLVED] Count entries with formulas, exclude blank values
    By JO505 in forum Excel General
    Replies: 4
    Last Post: 03-08-2013, 08:16 PM
  4. Replies: 0
    Last Post: 10-06-2011, 07:03 AM
  5. formulas down without manual copy
    By james in forum Excel General
    Replies: 1
    Last Post: 03-06-2005, 12:08 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