+ Reply to Thread
Results 1 to 3 of 3

Code for filling (worksheet attached)

Hybrid View

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    adelaide
    MS-Off Ver
    Excel 2003
    Posts
    86

    Code for filling (worksheet attached)

    Attached is a copy of the workbook that i need help with.

    i have this code ( see below) that i want to edit so that when it data is filled in the section G46 it will then enter to the next cell needed eg. G71 etc.

    the data is chosen from clicking on the fixed or portables area next to the cell.


     Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    
    If ActiveCell.Column = 6 Then
    
    ActiveCell.Copy Destination:=Sheets("NAC HANDOVER").Range("G46")
    
    End If
    
    End Sub
    Attached Files Attached Files

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Code for filling (worksheet attached)

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
      If Target.Column = 6 ThenSheets("NAC HANDOVER").Range("G46")=target.value
    Range("G71").select
    End Sub
    I have a faint idea what your next question will be.

  3. #3
    Registered User
    Join Date
    07-01-2010
    Location
    adelaide
    MS-Off Ver
    Excel 2003
    Posts
    86

    Re: Code for filling (worksheet attached)

    i cant seem to get this working??? is it me???

    Is it possible that you could use the code in the worksheet attached above and attached to here ?


    Thanks in advance

+ 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