+ Reply to Thread
Results 1 to 5 of 5

Shorten vba code.

  1. #1
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Shorten vba code.

    Dear Members,

    I have written below vba code to remove formulas in some ranges (because formula has other file links & I need to send report by email).
    This vba code taking long time. Is there any way to shorten this code.

    Please Login or Register  to view this content.

    Thanks in advance.
    Last edited by satputenandkumar0; 05-05-2014 at 09:56 AM. Reason: Forgot code tag to code
    Regards,
    Nandkumar S.
    ---------------------------------------------------------------
    Don't forget to Click on * if you like my solution.

  2. #2
    Registered User
    Join Date
    03-19-2014
    Location
    India
    MS-Off Ver
    Excel & VBA - 2007 & 2010
    Posts
    60

    Re: Shorten vba code.

    Hi Satputenandkumar0,

    Please attached the excel file so i will make the changes for you.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Shorten vba code.

    Not sure this will take much less time but code can be written as:
    Please Login or Register  to view this content.
    Or perhaps this is simpler and shorter?
    Please Login or Register  to view this content.
    Last edited by MarvinP; 05-05-2014 at 10:18 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Shorten vba code.

    Try this one fro FASTER!!

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Shorten vba code.

    Dear MarvinP & moinsk21

    Thanks for reply,

    Marvin, Your second option works nice in much less time.

    Thanks

+ 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] Is it possible to shorten this code?
    By aaaaaaiden in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-12-2014, 11:05 AM
  2. please help shorten this code
    By newbiewexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2013, 11:38 PM
  3. Looking to shorten VBA code
    By swhite7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 06:31 PM
  4. [SOLVED] Very inefficient code because of different sizes of arrays, how do i shorten my code?
    By Brammer88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-28-2012, 04:49 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