+ Reply to Thread
Results 1 to 7 of 7

Macro for button won't transfer data to another sheet

  1. #1
    Registered User
    Join Date
    10-16-2017
    Location
    Yorkshire
    MS-Off Ver
    Office 10
    Posts
    3

    Macro for button won't transfer data to another sheet

    Hello friends,

    I am currently trying to write a macro for a button to automatically populate data from one sheet to another. Basically, guests attending this big event will receive a link and will be able to access the first worksheet. They enter the data and click the button at the bottom. The macro assigned to that button will then populate the guestlist. I have searched so many different codes and have ended up with this one. But it keeps coming up with an error. Can someone solve this for me:

    Please Login or Register  to view this content.
    Last edited by titchroberts; 10-16-2017 at 08:34 AM. Reason: Change title

  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: Help debug code

    Unfortunately your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (As this is your first post I'll add the tags for you but please note for the future

    The fastest and most efficient way I know of doing this is to use a Data filter using whatever is the relevant criteria.

    Have you considered a Pivot Table with Slicers to filter data which might be an altogether more elegant way of achieving your goal?
    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
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Help debug code

    Hi,

    You have a few issues there. First, you are using nextRow when you assigned a value to blankRow; second, you type x1up rather than xlUp; and third, it looks like you are sending the data the wrong way. I think your code should be
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Registered User
    Join Date
    10-16-2017
    Location
    Yorkshire
    MS-Off Ver
    Office 10
    Posts
    3

    Re: Help debug code

    Quote Originally Posted by xlnitwit View Post
    Hi,

    You have a few issues there. First, you are using nextRow when you assigned a value to blankRow; second, you type x1up rather than xlUp; and third, it looks like you are sending the data the wrong way. I think your code should be
    Please Login or Register  to view this content.

    Thanks, it doesn't come up with a bug - but then it also doesn't transfer the data to the other worksheets. Any other suggestions on what it can be?

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Macro for button won't transfer data to another sheet

    Assuming that there is data in the relevant cells on the "ITC Open Day Return Sheet" sheet, the data must be going somewhere on the other two sheets- I suggest you try scrolling down on those sheets to see if you can locate it.

  6. #6
    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: Help debug code

    Quote Originally Posted by titchroberts View Post
    Thanks, it doesn't come up with a bug - but then it also doesn't transfer the data to the other worksheets. Any other suggestions on what it can be?
    Is a Data filter out of the question?

  7. #7
    Registered User
    Join Date
    10-16-2017
    Location
    Yorkshire
    MS-Off Ver
    Office 10
    Posts
    3

    Re: Help debug code

    Quote Originally Posted by Richard Buttrey View Post
    Is a Data filter out of the question?
    I have tried that but because of the way the form is set up, the information doesn't sit in subsequent rows. It is more the information is in individual cells. But I can see how this would be easier.

+ 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. Debug this code
    By ShandArchive in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2017, 09:25 AM
  2. Debug code
    By Human2014 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-03-2016, 07:27 PM
  3. Error in the code please debug it
    By kalyaaans in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-22-2014, 10:28 AM
  4. VBA Code Runs in Debug Mode But Returns Type Mismatch Error Outside Debug Mode
    By valerie.k.chiang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2014, 03:48 PM
  5. [SOLVED] Debug: How to debug this code?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-25-2013, 07:16 AM
  6. Debug the Code
    By macrogeek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2011, 06:45 AM
  7. HELP, trying to debug this code...
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2011, 12:05 PM

Tags for this Thread

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