+ Reply to Thread
Results 1 to 2 of 2

Default Value based on another cell using VBA

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Melbourne AUS
    MS-Off Ver
    Excel 2010
    Posts
    1

    Default Value based on another cell using VBA

    Hello

    I would like to have one cell "B1" have a default value based on cell "A1".
    I've been able to assign a static default value ( 7 ) using this VBA.

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("B1")) Is Nothing Then
    If Range("B1").Value = "" Then
    Range("B1").Value = 7
    End If
    End If

    Any help would be excellent

    Thank you for your time.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Default Value based on another cell using VBA

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

+ 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