+ Reply to Thread
Results 1 to 6 of 6

How to fill macro down ?

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    How to fill macro down ?

    I'd like to know how to fill the following macro down several thousand rows...I found the macro online but when I run it, it only fills the first row...Sorry if this is an obvious question but I'm a noob when it comes to macros....


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to fill macro down ?

    Code tags are requird when posting VBA code, per forum rules ( you did read them, right?).

    Please edit your post to add the code tags, which are used like so:

    Please Login or Register  to view this content.
    After you correct your post, someone will chip in and help.
    Last edited by Vaibhav; 02-14-2012 at 07:45 AM. Reason: chking
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: How to fill macro down ?

    Quote Originally Posted by Palmetto View Post
    Code tags are requird when posting VBA code, per forum rules ( you did read them, right?).

    Please edit your post to add the code tags, which are used like so:

    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]

    After you correct your post, someone will chip in and help.
    I'm sorry but I don't understand what a code tag is. I copied and pasted the entire code as I found it. I apologize for my ignorance but I really don't know much about macros...

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to fill macro down ?

    Hi smiso24

    To add Code Tags (Rule #3).

    To edit your post, go to post #1, press Edit Post, press Go Advanced to see the [#] button). Highlight your code then press the [#] button. Press Save Changes. The result will appear like this in the post window:

    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: How to fill macro down ?

    Thank you for the clarification.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: How to fill macro down ?

    You need to describe your workbook (better to post a sample). However, the line Set Rng = Range("A1:C1")
    sets the range as three cells A1,B1,C1 ---> the first row.
    In order to expand Rng to include all rows you need something like:
    Please Login or Register  to view this content.
    Ben Van Johnson

  7. #7
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: How to concatenate multi-colored string

    I've included a sample worksheet. I'd like to concatenate cells B1:D1 and put the result in cell E1 while preserving the color scheme of the individual cells. I actually have roughly 1700 rows of data and would like to do this for each row. Hope I explained it okay...
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: How to fill macro down ?

    Works on cells from A1:Cn, putting the concatenated string in column D of the same row
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by protonLeah; 02-12-2012 at 07:09 PM.

+ 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