+ Reply to Thread
Results 1 to 1 of 1

Copy Column to Row without hard coding cell references

Hybrid View

  1. #1
    Registered User
    Join Date
    11-01-2013
    Location
    Portsmouth, NH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Copy Column to Row without hard coding cell references

    Hey!

    I'm trying to move the data from one column to "a" row. The row is determined by the size of the data set but will always be two rows below the last row of the data. I need to place the data from the column in that row (the column is hard coded because it will never interfere). In the code below, I take a column in the data set, find the end of it, and make the activecell 2 rows below (where the row needs to begin).

    here is the code i have so far:

    Lastrow = Range("B:B").Find("*", SearchOrder:=xlByRows, SearchDirection:=xlDown).row
    Range("B1:B2" & Lastrow).Select
    ActiveCell.Offset(2, 0).Select
        
    Count = Range(Range("CA1"), Range("CA2").End(xlDown)).Count
    Range(ActiveCell).Resize(, Count).value = Application.Transpose(Range(Range("CA1"), Range("CA1").End(xlDown))
    Can someone please provide the code to fix this?

    Thanks a ton in advance!
    Last edited by JBeaucaire; 11-08-2013 at 12:15 AM. Reason: Added CODE tags, please take a moment to read the Forum Rules, link in menu bar above. Thanks!

+ 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] Autoscroll through drop-down without hard coding the name of each value
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2012, 01:25 PM
  2. Hard Coding a Pasted Workbook
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2011, 04:53 PM
  3. hard coding formulae
    By Dan99 in forum Excel General
    Replies: 2
    Last Post: 05-20-2008, 07:35 PM
  4. hard coding a cell
    By darrelly in forum Excel General
    Replies: 2
    Last Post: 10-07-2005, 06:24 PM
  5. hard coding conditional formatting
    By cosmic mo in forum Excel General
    Replies: 1
    Last Post: 03-10-2005, 11:31 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