+ Reply to Thread
Results 1 to 3 of 3

Change a macro to from and absolute cell reference to selected cell.

  1. #1
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Change a macro to from and absolute cell reference to selected cell.

    i am currently using the macro below to import text files into a spreadsheet. Currently, it begins the import in cell A1 which is what I recorded it to do. how do I change the code to begin the import on the active cell?

    Please Login or Register  to view this content.

    Thanks!
    Last edited by dcgrove; 02-05-2010 at 01:19 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Change a macro to from and absolute cell reference to selected cell.

    The short, direct answer is to change

    Range("A1")

    to

    ActiveCell

  3. #3
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: Change a macro to from and absolute cell reference to selected cell.

    thanks! I had tried activesheet.cell.selection but it didn't work.

+ 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