Results 1 to 3 of 3

Thread: [RESOLVED] Pasting code to cell

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    11

    Resolved [RESOLVED] Pasting code to cell

    Hey all,

    I have been working on a form for a log system on my work experience

    This is what i have so far

    VB Code:
    1. Private Sub cmdDoIT_Click()
    2.    
    3.     If txtLogNo.Value = "1" Then
    4.     If chkTaken.Value = True Then
    5.         Memory.SetText txtQuantity.Value
    6.         Memory.PutInClipboard
    7.         Sheets("Brochures").Select
    8.         Range("F4").Select

    Can any1 tell me wat code comes next to paste wats on the clipboard to the cell F4???

    Thanks
    Last edited by Sparky_GPR; Jun 23rd, 2006 at 06:01 AM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Pasting code to cell

    Is there a particular reason to be using the Clipboard?

    If not, try this instead:
    VB Code:
    1. Private Sub cmdDoIT_Click()
    2.    
    3.     If (txtLogNo.Value = "1") And (chkTaken.Value = True) Then
    4.         Sheets("Brochures").Range("F4").Value = txtQuantity.Value
    5.     End If
    6. ...
    7. End Sub

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    11

    Re: Pasting code to cell

    No just thats the first way i could think of doing it, that code worked wicked, cheers m8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width