DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Run Excel Macro From Specific sheet Cell

  1. #1
    W. D. Allen Sr. Guest

    Run Excel Macro From Specific sheet Cell


    Is it possible to run a macro to manipulate a number which has been entered
    into a specific cell in a spreadsheet by hitting "enter" in that cell?

    If so how is it done?

    Thanks,

    W. D. Allen Sr.

    ballensr@home.com

    end


  2. #2
    Willy Van den Driessche Guest

    Re: Run Excel Macro From Specific sheet Cell


    "W. D. Allen Sr." <ballensr@home.com> wrote:
    >
    >Is it possible to run a macro to manipulate a number which has been entered
    >into a specific cell in a spreadsheet by hitting "enter" in that cell?
    >
    >If so how is it done?
    >
    >Thanks,
    >
    >W. D. Allen Sr.
    >
    >ballensr@home.com
    >
    >end
    >


    In my opinion you're in a completely wrong newsgroup. However, I would do
    it with the WorkSheet.Change event, which is a standard event.

    Private Sub Worksheet_Change(ByVal Target as Range)
    Target.Font.ColorIndex = 5
    End Sub

    Unlike the example, you should check the range to be your cell and do the
    action you want to do. Check out the other worksheet event functions too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center