+ Reply to Thread
Results 1 to 7 of 7

Sheets array code only edits one sheet. Please help

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    Tx
    MS-Off Ver
    2013
    Posts
    50

    Sheets array code only edits one sheet. Please help

    I know there has to be a simple resolution to my problem. Right now I am having to use a chunk of my code multiple times in my macro in order for it to edit all the sheets I need it to edit. I know there has to be a way to get it to work on the sheet array but I have yet to figure it out. I have the sheet array in the code with .select before the editing code but it still does not work. This is just a small portion of my code. Thanks in advance!
    Please Login or Register  to view this content.
    baby_kay_2003

  2. #2
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Moscow
    MS-Off Ver
    Office 365
    Posts
    100

    Re: Sheets array code only edits one sheet. Please help

    Try it:
    Please Login or Register  to view this content.
    Last edited by The_Prist; 11-03-2014 at 04:26 PM. Reason: missed one letter
    I'm sorry my english...

  3. #3
    Registered User
    Join Date
    10-01-2014
    Location
    Tx
    MS-Off Ver
    2013
    Posts
    50

    Re: Sheets array code only edits one sheet. Please help

    Looks like that code is running 4 times on the first sheet.

  4. #4
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Moscow
    MS-Off Ver
    Office 365
    Posts
    100

    Re: Sheets array code only edits one sheet. Please help

    O! It's my mistake.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-01-2014
    Location
    Tx
    MS-Off Ver
    2013
    Posts
    50

    Re: Sheets array code only edits one sheet. Please help

    That worked perfectly! Later in the code I have this section and I tried using the above code for it to but I do not know how to do the section that already had withs. Can you help one more time?

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-01-2014
    Location
    Tx
    MS-Off Ver
    2013
    Posts
    50

    Re: Sheets array code only edits one sheet. Please help

    Still need help with this part please :
    That worked perfectly! Later in the code I have this section and I tried using the above code for it to but I do not know how to do the section that already had withs. Can you help one more time?

    Please Login or Register  to view this content.
    need it to work in array
    Please Login or Register  to view this content.
    Last edited by baby_kay_2003; 11-12-2014 at 01:10 AM. Reason: edit code

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Sheets array code only edits one sheet. Please help

    All you need are 2 dots.

    One before Range("A:Q") and one before Range("A1:B1,A3:Q3").
    If posting code please use code tags, see here.

+ 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. NEED FORMULA/FUNCTION IN 3rd SHEET TO LOOK_UP ARRAY IN 2 SHEETS
    By excelonguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2013, 02:40 AM
  2. [SOLVED] How to apply code to all sheets in an array
    By seethepuck in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2013, 03:13 PM
  3. VBA Sheet array code not working with drop down lists in master sheet
    By chiplaidlaw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-03-2012, 11:01 AM
  4. VB Excel Macro That Edits Itself Code
    By ashleys.nl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2011, 08:15 AM
  5. Replies: 10
    Last Post: 10-24-2009, 06:16 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