+ Reply to Thread
Results 1 to 10 of 10

Macto to copy data untill last used column

  1. #1
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    267

    Macto to copy data untill last used column

    Hi all :-)

    Hope, that anybody could help me with that.

    I have a dynamic name list in first row, starting from cell C1 and continuing to the right. What I want is just to copy formula which I have in cell A1 and copy it to third row starting from the Cell "C3" until last used column, based on first row?

    What I used now is
    Please Login or Register  to view this content.
    , but it copy formula untill last last column, which I don't need.

    Thank you,
    Andy :-)

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Macto to copy data untill last used column

    Try something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    267

    Re: Macto to copy data untill last used column

    super, that works for me :-)
    Could you please help me, how to modify this macro a bit and write there: to copy this formula as well to each row based on column "A" ?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Macto to copy data untill last used column

    Quote Originally Posted by dobracik View Post
    super, that works for me :-)
    Could you please help me, how to modify this macro a bit and write there: to copy this formula as well to each row based on column "A" ?
    You're welcome.
    I don't understand what you are asking?

  5. #5
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    267

    Re: Macto to copy data untill last used column

    I just wanted to ask if there is possibility to update your code, that my formula will be copy pasted untill last column based on column "C" ( what you did already) and untill last rows based on column "A", starting with cell "A3" ?

  6. #6
    Forum Contributor
    Join Date
    08-13-2009
    Location
    Caribbean
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: Macto to copy data untill last used column

    Quote Originally Posted by dobracik View Post
    super, that works for me :-)
    Could you please help me, how to modify this macro a bit and write there: to copy this formula as well to each row based on column "A" ?
    If you are asking how to insert a comment in the macro itself to describe what is happening then type it like this wherever you see fitting:

    'to copy this formula as well to each row based on column "A"

  7. #7
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    267

    Re: Macto to copy data untill last used column

    No, I was just asking for help to modify macro which AlphaFrog gave it to me.
    It should be like this : that my formula will be copy pasted untill last column based on column "C" ( what you did already) and untill last rows based on column "A", starting with cell "A3" ?

    So sorry for confusion

  8. #8
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    267

    Re: Macto to copy data untill last used column

    Is thete anybody who could help me with that?

    Thanks,
    Andy

  9. #9
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Macto to copy data untill last used column

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Czech Republic
    MS-Off Ver
    MS 365
    Posts
    267

    Re: Macto to copy data untill last used column

    Thanks works perfect.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 12-05-2021, 03:25 PM
  2. Replies: 1
    Last Post: 07-21-2014, 07:03 AM
  3. Replies: 2
    Last Post: 06-16-2014, 06:17 AM
  4. High select Column A-I untill A coulumn has Specific Data
    By harsha_manjula in forum Excel General
    Replies: 0
    Last Post: 02-25-2013, 07:08 AM
  5. Macto to copy words from text file to excel
    By maor.wn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2013, 02:51 AM
  6. [SOLVED] Delete whole row if column F meets a condition untill last row of data
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-12-2012, 04:29 AM
  7. Macro for Auto Sum a Column untill last row
    By tariqnaz2005 in forum Excel General
    Replies: 6
    Last Post: 05-25-2011, 07:54 AM

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