+ Reply to Thread
Results 1 to 5 of 5

Pull Data from One Sheet to Another

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    South Florida
    MS-Off Ver
    MS 2010
    Posts
    6

    Pull Data from One Sheet to Another

    Hi Folks,
    I am trying to create a macro that will pull some data from different cells in one worksheet and posting it to another worksheet within the same workbook. I am trying to get my head around coding this (total Excel noob here) but having a heck of a time.
    If someone can take a look at what I have and let me know what I am doing wrong, I would greatly apreciate it.
    Thanks.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by FourNines; 12-29-2011 at 10:34 AM. Reason: Solved-Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro: Pulling Data From Cells In One Sheet To Another

    Hi,

    You may not even need a macro since probably using the COUNTA() function would be enough to return a value for an empty cell. Difficult to comment with certainty without actually seeing your workbook.

    However the syntax of your code is wrong.

    Instead of

    Please Login or Register  to view this content.
    try instead:

    Please Login or Register  to view this content.
    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-21-2011
    Location
    South Florida
    MS-Off Ver
    MS 2010
    Posts
    6

    Re: Macro: Pulling Data From Cells In One Sheet To Another

    Richard,
    Thank you for taking a look at my code.
    I changed the code as you suggested but it is still not pulling and posting the data. I went ahead and posted the workbook.
    Regards,
    Joe

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro: Pulling Data From Cells In One Sheet To Another

    Hi Joe,

    See the attached. This is the technique I generally use for stuff like this. Note the additional two rows on the Purchases Sheet with A2:M2 named 'New_Record"
    Now the two line macro simply copies this row and pastes it as values to the data sheet.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-21-2011
    Location
    South Florida
    MS-Off Ver
    MS 2010
    Posts
    6

    Re: Macro: Pulling Data From Cells In One Sheet To Another

    Richard,
    That worked great. Simple is always better.
    I really appreciate the help.
    Regards,
    Joe

+ 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