+ Reply to Thread
Results 1 to 6 of 6

_change vs _calculate (ByVal) problem

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    Belgrade
    MS-Off Ver
    Excel 2003
    Posts
    25

    _change vs _calculate (ByVal) problem

    Thanks to some experienced forum users, I've managed to bypass 3 formatting condition limit (excel 2003). However, this works only for values and not for formulas.

    How do I make this work when there is a formula in A1?

    Also, I think I know what is going on in the code, but I'm having trouble understanding what the fourth line does.
    I would appreciate if someone could provide a short explanation. Too be specific - What does VarType do (I'm familiar with .value2 property), and what is vbDouble?

    I don't really understand this explanation I've found - Double-precision floating-point number :/

    Code bellow,

    Thank you

    Please Login or Register  to view this content.
    Last edited by DimAvr; 08-27-2013 at 05:39 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: _change vs _calculate (ByVal) problem

    This will do the same work....

    Please Login or Register  to view this content.
    Last edited by :) Sixthsense :); 08-27-2013 at 05:46 AM. Reason: Correction


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-06-2013
    Location
    Belgrade
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: _change vs _calculate (ByVal) problem

    Oh, great, very clever.
    Is there a way for the code to work when there is a formula in A1? That is what's bothering me

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: _change vs _calculate (ByVal) problem

    Add the below code also in your workbook code window...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-06-2013
    Location
    Belgrade
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: _change vs _calculate (ByVal) problem

    That's it!

    Thanks Sixthsense


  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: _change vs _calculate (ByVal) problem

    Glad it helps you and thanks for the feedback

+ 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. Replies: 2
    Last Post: 05-17-2021, 05:02 PM
  2. [SOLVED] ByVal problem
    By DimAvr in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-26-2013, 12:04 PM
  3. [SOLVED] Synthaxe problem in Private Sub Worksheet_Change(ByVal Target As Range)
    By DamienR in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-18-2013, 12:56 AM
  4. Problem with Worksheet_Change(ByVal Target As Range)
    By channel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2011, 03:06 PM
  5. Why _Change(ByVal Target As Range)
    By Jim at Eagle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2005, 03:06 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