Consulting

Results 1 to 8 of 8

Thread: Paste Special / Values / Transpose

  1. #1

    Paste Special / Values / Transpose

    Dear Sirs,

    The code up to the RIGHT step works fine, but the PasteSpecial part. Can someone please help me out telling me what am I doing wrong?

    Also, I have not been able to find a reference about Expriecions, such as the definition and examples of usage.

    Thank you for your help . . . .

    Marco.-
    Code:
    Range("Q9:Q25").Select

    Sheets("NOTE JOURNAL 3").Select

    Range("T3").Select
    Application.SendKeys "^{DOWN}", True
    Application.SendKeys "{RIGHT}", True


    PasteSpecial _
    Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    I thought I answered this here
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3

    Paste/Special

    Yes, you did. Thank you. But this is a variance or a little different scenario. Please review. Thank you again, Marco.-

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Try following the steps I pasted in the other code, rather than using the SendKeys method.

    BTW, it is considered good etiquette to repond to posted answers, and to mark the thread Solved when you have your solution.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5

    On Paste Special

    OK MD,

    Thank you. I'll keep it in mind. However, please check the other scenario I posted if you have the chance. There's a tricky variation to the same problem I was trying to solve.

    Thank you again,

    Marco.-

  6. #6
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    There's a tricky variation to the same problem I was trying to solve
    I don't see it.
    [VBA]Sub post_note_in_journal()
    Range("Q9:Q25").Copy
    Sheets("NOTE JOURNAL 3").Range("T3").End(xlDown).Offset(,1). _
    PasteSpecial Paste:=xlPasteValues, Transpose:=True
    End Sub[/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  7. #7

    Paste/Special

    Thank you MD - It worked like a charm. I could not find where to declare the question as answered. Please advice . . . .

    Thanks Again,

    Marco.-

  8. #8
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    see Thread Tools
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •