+ Reply to Thread
Results 1 to 2 of 2

Autofill based on selected cell

  1. #1
    Registered User
    Join Date
    08-02-2011
    Location
    Seattle, Wa
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Autofill based on selected cell

    I'm pretty new to programming and VB in general. I've searched and cannot find this anywhere so I apologies if this has already been asked here. I’m writing a script that will, given the column names be able to complete a series of things with two excel files and eventually run some regressions regardless of coordinates as those are likely to change from file to file. I’ve been naming different columns as Ranges and been doing fine until now. I’m trying to auto fill a formula to the bottom of the file. Everything I’ve seen for this has exact coordinates. Such as

    Selection.AutoFill Destination:=Range("F1:F" & Range("A" & Rows.Count).End(xlUp).Row)

    But I don’t have exact coordinates. Ideas anyone? Thank you for your time.

  2. #2
    Forum Contributor
    Join Date
    06-07-2011
    Location
    Hnd
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: Autofill based on selected cell

    Hi,

    I'm not sure if it is what you want, and depends of the content of your file, but you can try with:


    Please Login or Register  to view this content.
    Regards
    Last edited by cgkmal; 08-03-2011 at 01:11 AM.

+ 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