+ Reply to Thread
Results 1 to 4 of 4

Coppy an undefined number of cells from one sheet to another

  1. #1
    Registered User
    Join Date
    07-29-2008
    Location
    midlands
    Posts
    2

    Coppy an undefined number of cells from one sheet to another

    Hello!

    I am trying to create a macro in 2003 where I can save an undefined number of filled cells in sheet 1 to a seperate location, and with the click I will move to sheet 2, then the same is needed for sheet 2 but to save the data with the sheet 1 data in the consolidated sheet. However all sheets use dropdown boxes.

    is it possible to use offset / vlookup? to state where the selection of the data ends and where it needs to be coppied to?

    If any one can help I would be very grateful.

    Thanks.
    Last edited by goatcheesesalad; 07-29-2008 at 05:52 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Please read thew Forum Rules & use the Edit button to change your Thread's Title
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I have now locked your duplicat post. I strongly recommend that you read the Forum Rules & follow them if you want free help

  4. #4
    Registered User
    Join Date
    07-29-2008
    Location
    midlands
    Posts
    2

    Need to edit to gain all cells from A11:G11

    Can any one help?

    Private Sub CommandButton8_Click()
    Dim SourceRange As Range, DestRange As Range
    Dim DestSheet As Worksheet, Lr As Long
    With Application
    .ScreenUpdating = False
    .EnableEvents = False
    End With
    Set SourceRange = Sheets("Luggage").Range("A11:G11")
    Set DestSheet = Sheets("Data Base")
    Lr = DestSheet.Cells(Rows.Count, "A").End(xlUp).Row
    Set DestRange = DestSheet.Range("A" & Lr + 1)
    SourceRange.Copy DestRange
    With Application
    .ScreenUpdating = True
    .EnableEvents = True
    End With

    End Sub
    Last edited by goatcheesesalad; 07-29-2008 at 06:35 AM.

+ 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