+ Reply to Thread
Results 1 to 3 of 3

Macro needed for copy paste!

  1. #1
    Registered User
    Join Date
    03-25-2008
    Posts
    24

    Macro needed for copy paste!

    Hi everyone,

    Here is my scenario.

    A = Column, 1 = Row

    A1 = X
    A5 = Y
    A19=Z
    A24=ZXCV

    Is there a macro whereby I can fill up A2 - A4 with A1 (X), fill A6-A18 with A5 (Y), and fill A20-A23 with Z?

    Not sure if copy+paste, or autofill will help.

    Any help will be much appreciated.

    Thanks,
    Rukia
    Last edited by rukia; 06-02-2010 at 09:12 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro needed for copy paste!

    If the cells you're wanting to "fill up" are currently empty, this is an easy little trick:

    1) Highlight A1:A24
    2) Press F5 and click on Special
    3) Select Blanks and then OK

    You now have all the empty cells selected

    4) Press the = sign one time
    5) Press the Up Arrow one time
    6) Careful here, press CTRL-ENTER

    All the empty cells filled up with the value from above.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Macro needed for copy paste!

    Hi rukia
    maybe something like
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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