+ Reply to Thread
Results 1 to 7 of 7

Autofill text starting at the ActiveCell

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Autofill text starting at the ActiveCell

    Hi,

    Can someone please help me rework the following macro. I am trying to insert text into the middle of a document. I need the macro to find the first open cell in column D, key in "Deposit Required" and carry that text only as far down as there are filled cells in column C. I know the problem lies in the last line of the code, but I'm not sure how to fix it.

    Please Login or Register  to view this content.


    Thanks!
    canadian_chickie

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Autofill text starting at the ActiveCell

    What's your goal ? show me an example, before and after macro run

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Autofill text starting at the ActiveCell

    Sorry for the mess, I don't know how to format this so that it displays in proper columns

    BEFORE:
    ACCOUNT DESCRIPTION COMPANY ISSUE
    11111-111 ABC TREATMENT ABC LTD OVERBILLED
    11111-112 DEF TREATMENT DEF LTD OVERBILLED
    11111-113 GHI TREATMENT GHI LTD MISSING SIGNATURE
    11111-114 JKL TREATMENT JKL LTD
    11111-115 MNO TREATMENT MNO LTD
    11111-116 PQR TREATMENT PQR LTD


    AFTER ("Deposit Required" has been added to the first empty cell in Col D and carried down only as far as there is a company in Col C):
    ACCOUNT DESCRIPTION COMPANY ISSUE
    11111-111 ABC TREATMENT ABC LTD OVERBILLED
    11111-112 DEF TREATMENT DEF LTD OVERBILLED
    11111-113 GHI TREATMENT GHI LTD MISSING SIGNATURE
    11111-114 JKL TREATMENT JKL LTD DEPOSIT REQUIRED
    11111-115 MNO TREATMENT MNO LTD DEPOSIT REQUIRED
    11111-116 PQR TREATMENT PQR LTD DEPOSIT REQUIRED

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Autofill text starting at the ActiveCell

    attach the file

  5. #5
    Registered User
    Join Date
    08-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Autofill text starting at the ActiveCell

    See attached
    Report.xlsx

  6. #6
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Autofill text starting at the ActiveCell

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Autofill text starting at the ActiveCell

    Thank you!!! You are a lifesaver patel45!!

+ 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