+ Reply to Thread
Results 1 to 10 of 10

transposing data not copying to the target cell(s)

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    transposing data not copying to the target cell(s)

    Hi,
    I am transposing data from one worksheet to another in the same workbook.
    When I transpose the data from the originating workbook to the target cells in the other workbook (using copy, paste transpose) I either get no data copied across or a circular reference warning.
    Could someone please show me a way by vbasic how I can do this.
    Please see file. I am copying the Outgoings totals from worksheet tab 07JULI&E H40:X40 to tab 07JULRECON G6:G22 and the Income totals from 07JULI&E H10:X10 to tab 07JULRECON D6:D22
    Thanks in advance
    Jdin54
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: transposing data not copying to the target cell(s)

    Maybe:

    Please Login or Register  to view this content.
    BTW there's no data in H10-X10 on your sample.

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: transposing data not copying to the target cell(s)

    Thanks John will try this and get back to you.
    Joe

  4. #4
    Registered User
    Join Date
    05-07-2014
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: transposing data not copying to the target cell(s)

    Thanks again John. Worked perfectly.
    So if I now add new worksheets for Aug, Sept etc. I just change the appropriate sheet names will that work. Or can you think of an other way?
    Thanks,
    Joe

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: transposing data not copying to the target cell(s)

    You could do that, but another option would be to use an input box to select the sheet name. That way you don't have to change the macro every month.

  6. #6
    Registered User
    Join Date
    05-07-2014
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: transposing data not copying to the target cell(s)

    Thanks again John,
    I really am very new to this. I will try the input box.
    May have to get back to you if I can't make it work though.
    Thanks again,
    Joe

  7. #7
    Registered User
    Join Date
    05-07-2014
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: transposing data not copying to the target cell(s)

    Hi John,
    Have tried the input box in which the user enters the date (not the sheet name). This updates the date correctly and all is fine.
    I tried to have the input box display when the reconciliation sheet is opened. It worked once when I first tried it but when I saved and reopened the worksheet it did not display the input box.
    Can you please have a look and advise as to why it is not displaying on opening the worksheet. Also, I am looking for a way to send the file but can't see any way to do that here. Did it on my first Query so that is something else I need to learn ? So I have copied the code here (below).

    Private Sub Workbook_Open()

    End Sub
    Private Sub CommandButton1_Click()
    Dim MyVariable As Variant
    MyValue = InputBox("Enter the date of this Reconciliation")
    Range("G3").Value = MyValue
    End Sub

    Your valued advice is much appreciated.
    Joe

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: transposing data not copying to the target cell(s)

    Please use code tags when posting. See Forum Rule No. 3 on the link.

    http://www.excelforum.com/forum-rule...rum-rules.html

    I think you're after Sheet Activate Event Code:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-07-2014
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: transposing data not copying to the target cell(s)

    Hi John,
    Getting a run-time error "424" which states:
    Object required when I run the code.
    Regards,
    Joe

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: transposing data not copying to the target cell(s)

    Where did you place the code? Did you place it in the Sheet Code Module?

+ 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] Copying multiple unique values into one spreadsheet (Transposing the data)
    By Ardiko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2013, 03:02 AM
  2. Replies: 5
    Last Post: 08-20-2013, 08:10 AM
  3. copying data from excel files in a source folder to target folder
    By Javed07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 04:27 PM
  4. Replies: 5
    Last Post: 01-22-2013, 11:38 AM
  5. Transposing columns of data into one cell
    By virtualluffy in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-04-2012, 02:43 PM
  6. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 PM
  7. copying data from source workbook to target workbook by headers
    By tweety127 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2009, 11:35 PM
  8. Replies: 4
    Last Post: 06-13-2007, 12:24 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