+ Reply to Thread
Results 1 to 3 of 3

VBA - WorkSheet Change ByVal Target As Range and DDE link

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    1

    VBA - WorkSheet Change ByVal Target As Range and DDE link

    Hi, IŽll be gratefull if someone could help with this problem; when the value of a cell changes, do something, but my macro is not working when the value is related with the value of a cell of DDE link.

    Code:

    Please Login or Register  to view this content.
    Last edited by alansidman; 10-24-2013 at 11:12 AM. Reason: code tags added

  2. #2
    Registered User
    Join Date
    10-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: VBA - WorkSheet Change ByVal Target As Range and DDE link

    I notice that you aren't using the range that you changed in your macro.

    Target.Address is the variable that changed not Cells(1,1). It seems you would want to compare the changed cell not just A1 & B1 right?

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: VBA - WorkSheet Change ByVal Target As Range and DDE link

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (I have added them this time. Please read our rules and abide by them in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Private Sub Worksheet_Change(ByVal Target As Range) - 2 on one worksheet?
    By FlyFisherman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2013, 03:56 PM
  2. Replies: 5
    Last Post: 09-23-2013, 11:53 PM
  3. [SOLVED] Change(ByVal Target As Range) does not work when Target value changes
    By LeonvL in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-07-2013, 06:59 PM
  4. [SOLVED] Worksheet_Change(ByVal Target As Range) - set to only update when 3 target cells changed?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 06:40 PM
  5. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 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