+ Reply to Thread
Results 1 to 5 of 5

Drag and drop,VBA

  1. #1
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Drag and drop,VBA

    I have several mickey mouse formulas in different rows that take different data from the file, i usually select all the formulas and do a drag and drop to the last cell, is it possible to select all those formulas and determine the range of used cells in the filesand copy them to the last range of cells with info. I don't know if i made myself clear or need further explanation. Of course i'm trying to do this with a VBA code.
    Thanks in advanced

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Drag and drop,VBA

    The last cell is defined, so that is possible.

    What kind of info. Should this be a Comment in those cells?
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drag and drop,VBA

    So this i how i got the report, in the yellow range are a bunch of cells with formulas that i use the get mora data, in the gray range there are cells and that is the column that will define the last to which the yellow cells will be copied. Now i need to know if it can be done to copy that range of yellow cells(the first row is the header)with formulas automatically in a way that the macro detects the last cells with data and copy that selection of cells.

    PS: Couldn't upload the file but here is the link to the info
    http://rapidshare.com/files/340917507/Book.zip.html

  4. #4
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drag and drop,VBA

    No ideas?,at least a theoretical procedure?

  5. #5
    Registered User
    Join Date
    06-12-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Drag and drop,VBA

    To find the used portion of a spreadsheet you can use activesheet.usedrange

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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