Results 1 to 4 of 4

Reducing length of code

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Reducing length of code

    can the following code be written in one line?

    Sheets("SC-Author ranking").Cells(j, LastColumnSc + 7) = Sheets("Author ranking").Cells(k, LastColumn - 4) - Sheets("SC-Author ranking").Cells(j, LastColumnSc - 2)
    If Sheets("SC-Author ranking").Cells(j, LastColumnSc + 7) = 0 Then Sheets("SC-Author ranking").Cells(j, LastColumnSc + 7) = ""
    Last edited by dschmitt; 05-09-2010 at 10:23 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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