+ Reply to Thread
Results 1 to 9 of 9

Move shape(button 1) from active sheet to next sheet

  1. #1
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Move shape(button 1) from active sheet to next sheet

    Hi experts

    I have code create sheets . what I want procedure to put in the end of the code to move shape(button 1) from active sheet to next sheet after the code create new sheet added by code . I don't want copying button 1 , just move from active sheet to next sheet .

    example: active sheet is STOCK and move the button 1 to the new added sheet will be STOCK_JAN and when STOCK_JAN is active and move the button 1 to the new added sheet will be STOCK_FEB and so on .
    also posted here
    https://www.mrexcel.com/board/thread...sheet.1255956/
    by the way I got some assistance from some members but doesn't seem to work for me
    as bold some lines to unerstand how work prcedure I got from the other forum.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Move shape(button 1) from active sheet to next sheet

    Hi there,

    See if the following code gets you moving in the right direction:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: Move shape(button 1) from active sheet to next sheet

    Hi
    your code works as I want ,but
    The highlighted values may be altered to suit your requirements.
    you misunderstood !
    instead of sheet1 will be active sheet . instead of sheet2 I can't specify sheet name because will change based on active sheet . when select specific sheet should move the button to next sheet directly (meaning will change sheet name every time).
    I hope you have idea to achieve that.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Move shape(button 1) from active sheet to next sheet

    Please Login or Register  to view this content.
    Last edited by jindon; 03-27-2024 at 06:52 AM.

  5. #5
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: Move shape(button 1) from active sheet to next sheet

    Awesome !
    I have question : it's possible to delete button from STOCK sheet , I don't need it ?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Move shape(button 1) from active sheet to next sheet

    #4 updated.

  7. #7
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: Move shape(button 1) from active sheet to next sheet

    I' m not sure what's my bad!
    I changed month in PC to APR until add STOCK_APR based on current month and move button from STOCK_MAR sheet to STOCK_APR
    but shows object variable or with block variable not set
    Please Login or Register  to view this content.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Move shape(button 1) from active sheet to next sheet

    #4 updated.

  9. #9
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: Move shape(button 1) from active sheet to next sheet

    Excellent !
    much appreciated for your time & help .

+ 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] Protect and Unprotect Active Sheet Shape Group
    By billy60 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2024, 09:03 PM
  2. Move row to another sheet if active sheet cell contains certain word
    By danny25 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2022, 05:56 AM
  3. Replies: 4
    Last Post: 12-19-2019, 05:48 AM
  4. [SOLVED] VBA to move form button and ActiveX Control button, Shape position
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2018, 02:46 PM
  5. VBA to move shape from one sheet to another within a particular range and resize it
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2017, 12:37 AM
  6. [SOLVED] move active sheet after LastSheet
    By plans in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-04-2016, 04:48 PM
  7. Replies: 2
    Last Post: 12-11-2008, 10:18 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