+ Reply to Thread
Results 1 to 8 of 8

Macro to copy a specific range from a hidden sheet

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Macro to copy a specific range from a hidden sheet

    Morning all,

    I have this very simple macro which is only copying data from a hidden sheet then re-hiding it.

    It goes through the motions when I run it but for some reason it does not copy anything over. I am sure it is something dreadfully simple but I cannot work it out for the life of me.
    Please Login or Register  to view this content.
    Thanks.
    Last edited by dumblonde; 05-10-2012 at 02:40 AM. Reason: Please use code tags in future.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Very simple macro not working

    Welcome to the forum.
    this part:

    Sheets("Source").Visible = True
    Sheets("Source").Select /*add this */
    Range("A3:D11").Select
    Selection.Copy
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    05-10-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Very simple macro not working

    Thank you.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Very simple macro not working

    dumblonde,

    Please read and adhere to these simple rules!

    1. Use concise, accurate thread titles. Your post title should 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 the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more days have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Very simple macro not working

    oooooppppppssss

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro to copy a specific range from a hidden sheet

    Apologies, I have done that now.

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Macro to copy a specific range from a hidden sheet

    thanks
    btw..
    to shorten some lines...
    you can do it like this..

    ThisWorkbook.Sheets("Source").Range("A3:D11").Copy


    from the lines

    Sheets("Source").Select
    Range("A3:D11").Select
    Selection.Copy


    you can do it to other lines...

    thanks.

  8. #8
    Registered User
    Join Date
    05-10-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro to copy a specific range from a hidden sheet

    Thank you again.

+ 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