+ Reply to Thread
Results 1 to 3 of 3

how to transpose values without selecting the cell

  1. #1
    Registered User
    Join Date
    05-27-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    12

    how to transpose values without selecting the cell

    you guys have spoiled me. i need some help with some coding. i'm trying to copy and transpose some info without actually selecting the cells. the following code works but the cells get selected in excel.
    Please Login or Register  to view this content.
    what i'm looking for is something that works like this:
    '
    Please Login or Register  to view this content.
    Where you the user never see the macro running and it does not look like a ghost copying and pasting.

    Some background:
    In the spread sheet i'm trying to finish the macro that must run, must copy information from a few sheets to a sheet for that month, then it must clear the copied info from those sheets. But the first step would be to copy totals in C19:L19 in the inputs page and copy it to B28:B27 for July (transposing it). The macro determines the cell by another macro that tells it which month to select. for example:
    Please Login or Register  to view this content.
    Then i named a Cell under each month to help it select the right place. the whole code for that macros is:
    Please Login or Register  to view this content.
    i dimmed(') the parts that are working and have modified the code since i first started on it to try incorporate the "variables" or what ever the "dims" are.
    i am also attaching the spread sheet. the other months tabs are not there as i will copy and past them from the "Jul" tab then rename them
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to transpose values without selecting the cell

    2 ways first straight copy second transpose
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-27-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: how to transpose values without selecting the cell

    thanks the second one worked for me

+ 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