+ Reply to Thread
Results 1 to 6 of 6

Include 2 sheets in code loop?

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Include 2 sheets in code loop?

    I am using the following code to change the charts in the sheet "DashBoardOne". I want to include the sheet "DashBoardTwo" in the code. Can someone please advise how I change line 3 to include the additional sheet?

    Please Login or Register  to view this content.
    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Include 2 sheets in code loop?

    May be

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Include 2 sheets in code loop?

    Thanks for your reply. I receive the following error when using that code?
    Error: Object does not support this property or method

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Include 2 sheets in code loop?

    Try this one

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Include 2 sheets in code loop?

    Thanks very much. That works.

  6. #6
    Registered User
    Join Date
    12-27-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Include 2 sheets in code loop?

    --I apologize. After re-reading my post doesn't apply---

    @AB33
    Would you be able to tell me where something like that would fit in my situation?

    I'm using a UserForm to enter information into a single worksheet. There is a lot of repetitive code here. It would be beneficial to me if I could separate it into 3 or 4 different worksheets.

    Most of this came from piecing together other forum posts and Google solutions.

    Thanks for any help you can give.

    I truncated some of the code...

    Please Login or Register  to view this content.
    Last edited by wlugo13; 08-20-2013 at 01:04 PM.

+ 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] Macro needs amendment to include loop
    By Marcel747400 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2012, 07:38 AM
  2. Code To Find and Offset works on first sheet but won't loop to other sheets
    By mgaworecki in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-10-2009, 03:02 PM
  3. Resolved >>> Adjust code to include sorting employee sheets a-z?
    By lou031205 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2007, 05:47 PM
  4. Adapt code to loop through sheets
    By Stuart in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2005, 10:05 PM
  5. [SOLVED] include empty sheets
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2005, 08:06 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