+ Reply to Thread
Results 1 to 6 of 6

msgbox apear if macro clicked

  1. #1
    Registered User
    Join Date
    01-14-2008
    Posts
    76

    msgbox apear if macro clicked

    hi
    i was wondering if you tell me the code so that if i click a macro it would prompt a msg box if the person has chosen a cell with a value on it

    for example

    atm i have a macro that lets me copy date from one cell to another

    and with that macro, the cell that is chosen is where the macro copies on, but i want so that if the user chooses a cell with a value then it would prompt a msg box saying "choose a empty cell"


    if you could help me then that would be great

    thanks in advance

  2. #2
    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
    So where's the other code ??

    VBA Noob
    _________________________________________


    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 !!!

  3. #3
    Registered User
    Join Date
    01-14-2008
    Posts
    76
    Private Sub CommandButton1_Click()
    ActiveCell.Value = ActiveCell.Value + Sheet11.Cells.Range("D12").Value
    End Sub

    sorry about that

  4. #4
    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
    Something like


    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Registered User
    Join Date
    01-14-2008
    Posts
    76

    thanks

    thanks it works

  6. #6
    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
    Your welcome

    VBA Noob

+ 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