+ Reply to Thread
Results 1 to 9 of 9

Cell = Formula issue

Hybrid View

  1. #1
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See attached. Change C26

    VBA Noob
    Attached Files Attached Files
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  2. #2
    Registered User
    Join Date
    01-04-2007
    Posts
    10
    TY - That is exactly what I want to happen, but I am a true nub at this.

    I don't even know what to look for to to see how you did it.

    I viewed the code and nothing was there.

    Doesn't look like there is any formatting or conditions.

    What am I missing?

    EFGMan

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    It done with code. It is called by a Change Event and the code is on the actual sheet.

    Right click the sheet tab and select view code.

    When the target is cell C26 and you add a figure it multiplies by 15

    These link might help with change events and adding the code

    http://www.cpearson.com/excel/events.htm

    http://www.contextures.com/xlvba01.html#Worksheet

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Not Intersect(Target(1), Range("C26")) Is Nothing Then
        Application.EnableEvents = False
        With Target(1)
             'Assuming your Constant/Multiplier is 15:
            .Value = .Value * 15
        End With
        Application.EnableEvents = True
    End If
    End Sub
    VBA Noob

  4. #4
    Registered User
    Join Date
    01-04-2007
    Posts
    10
    UDMan. Perfect in every way. Thank you so much.
    Happy EFGMan

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad I could help

    Thanks for the feedback

    VBA Noob

  6. #6
    Registered User
    Join Date
    01-04-2007
    Posts
    10
    blablablab
    Attached Images Attached Images
    Last edited by EFGMan; 01-12-2007 at 01:00 PM.

+ Reply to Thread

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