+ Reply to Thread
Results 1 to 3 of 3

Use Activecell.column to copy

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Use Activecell.column to copy

    Hi,

    For example, my range is C2.

    If i set my current column like:
    Mycolumn = ActiveCell.Column
    Mycolumn would be C

    If i would like to copy Range C2:C37, so Mycolumn2:mycolumn37.

    How should i program this?

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Use Activecell.column to copy

    Here are two ways to reference the range

    Range(Cells(2, mycolumn), Cells(37, mycolumn))
    Cells(2, mycolumn).Resize(36, 1)
    note that mycolumn is a number, not a letter
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Use Activecell.column to copy

    Yes, thanks!!
    That's what i needed

+ 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. [SOLVED] VBA copy only activecell in specific range
    By stanley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2014, 04:16 PM
  2. [SOLVED] copy rows with activecell value and insert rows after activecell
    By a.hudrea in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2014, 09:05 AM
  3. [SOLVED] activecell range copy
    By scrabtree23 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-10-2013, 12:27 PM
  4. [SOLVED] From Activecell, Paste cell value on current row into column A, Column B, D, and G
    By bg_enigma1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2012, 03:43 PM
  5. Output contents of Activecell when Activecell may be string or numeric.
    By jfriddle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 12:27 PM
  6. activecell.copy and offset
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2010, 10:07 PM
  7. [SOLVED] Copy format of row above my activecell
    By al007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2005, 06:00 PM

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