+ Reply to Thread
Results 1 to 6 of 6

VBA Code for looping through the worksheets and active next cell then run the same command

  1. #1
    Registered User
    Join Date
    01-16-2022
    Location
    Singapore, Singapore
    MS-Off Ver
    2013
    Posts
    3

    Question VBA Code for looping through the worksheets and active next cell then run the same command

    Hi, I need help to give a tweak of a code that a friend give (thank you very much for it).

    Please Login or Register  to view this content.
    What I need to make adjustments are:
    after the code executed, move the selected cell to the end of the filled cells and run the code again through the worksheets inside the workbook (because the code only runs on the specified sheet only and I need to make it run through the entire worksheets inside the workbook).

    Thank you!

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA Code for looping through the worksheets and active next cell then run the same com

    Possibly...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-16-2022
    Location
    Singapore, Singapore
    MS-Off Ver
    2013
    Posts
    3

    Re: VBA Code for looping through the worksheets and active next cell then run the same com

    thank you for the reply and it works like what I expected. But the problem within the code is that its also copying the header of the table. is there any fix for this? thanks so much

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA Code for looping through the worksheets and active next cell then run the same com

    Hard to tell without seeing the workbook. Suggest you attach a sample workbook.

  5. #5
    Registered User
    Join Date
    01-16-2022
    Location
    Singapore, Singapore
    MS-Off Ver
    2013
    Posts
    3

    Re: VBA Code for looping through the worksheets and active next cell then run the same com

    hope the screenshot can explain the problem

    Attachment 764927

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA Code for looping through the worksheets and active next cell then run the same com

    Your attachment isn't viewable.

+ 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] vba command to go to specific cell in the active cell row question
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2020, 09:45 PM
  2. Deleting a range using active cell and cells command
    By beasley101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-13-2015, 08:17 AM
  3. Can't type in cell because of active X command button. Any ideas?
    By dbrizor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-16-2015, 10:42 AM
  4. [SOLVED] Code is not looping through all worksheets
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-10-2014, 12:26 AM
  5. Set Active Cell on Command Button Click?
    By cadnauseum in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-07-2012, 04:00 PM
  6. [SOLVED] using a the active cell in a range command....
    By dr chuck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2006, 10:10 AM
  7. [SOLVED] Code to hide worksheets based on Active Directory login?
    By Joe in forum Excel General
    Replies: 0
    Last Post: 02-21-2006, 12:20 AM

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