+ Reply to Thread
Results 1 to 2 of 2

Help with pieces of a code that copy things into a new sheet

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Help with pieces of a code that copy things into a new sheet

    How does the "Move after" work? The "1" after the "count" is doing what? What is "mod"? What is "If Not"? Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Help with pieces of a code that copy things into a new sheet

    the .add.move after:= counts how many worksheets there are and moves the worksheet there.

    if you are talking about the intLastRow = wks.Cells(Rows.count, 1) <---- the 1 is column 1

    MOD returns the remainder after a number is divided by a divisor

    the If Not reverses/negates/switches the thing after it....so, IsEmpty(wks.Cells(intRow, 1)) if the ISEMPTY() returns a false then the NOT changes it to a TRUE....

    HTH
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

+ 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. Please explain the pieces of this code
    By freshfruit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2014, 09:22 PM
  2. [SOLVED] Please explain the pieces of this code
    By freshfruit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2014, 06:00 PM
  3. [SOLVED] Linking 2 pieces of vba code
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 54
    Last Post: 07-19-2013, 08:10 AM
  4. Integrate two pieces of code
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2009, 09:47 AM
  5. [SOLVED] Merge 2 pieces of code
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2006, 12:10 PM

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