+ Reply to Thread
Results 1 to 3 of 3

Copying with a macro

  1. #1
    DonT
    Guest

    Copying with a macro

    I need some help! I have a workbook which has four sheets, the two that
    matter are named work in progress and receipt. My problem is that I need to
    copy the name, address, city, state, and zip code from the in progress sheet
    to the receipt sheet, one at a time and place them in the proper order. The
    problem with the macro is the range is set at the time of the recording, and
    the cells change each time I use it.
    For example when I recorded the macro I started on cell C4, copied name it
    to the receipt form, back to in progress, copied address to receipt, and so
    on. Now I want to copy the name in cell D4 but the macro is set for C4.
    I’m NOT a programer, I can record macro and understand a VERY little of
    visual basic. Can anyone help me???

    Thank you
    Don

  2. #2
    Gary''s Student
    Guest

    RE: Copying with a macro

    Post your code.
    --
    Gary's Student


    "DonT" wrote:

    > I need some help! I have a workbook which has four sheets, the two that
    > matter are named work in progress and receipt. My problem is that I need to
    > copy the name, address, city, state, and zip code from the in progress sheet
    > to the receipt sheet, one at a time and place them in the proper order. The
    > problem with the macro is the range is set at the time of the recording, and
    > the cells change each time I use it.
    > For example when I recorded the macro I started on cell C4, copied name it
    > to the receipt form, back to in progress, copied address to receipt, and so
    > on. Now I want to copy the name in cell D4 but the macro is set for C4.
    > I’m NOT a programer, I can record macro and understand a VERY little of
    > visual basic. Can anyone help me???
    >
    > Thank you
    > Don


  3. #3
    DonT
    Guest

    RE: Copying with a macro

    this is the macro that i recorded
    tks
    Don

    Range("C8").Select
    Selection.Copy
    Sheets("Recipt form").Select
    Range("E15").Select
    ActiveSheet.Paste
    Range("E16:I16").Select
    Sheets("Bid - In progress").Select
    Range("F8").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Recipt form").Select
    Range("E16:I16").Select
    ActiveSheet.Paste
    Range("E17").Select
    Sheets("Bid - In progress").Select
    Range("G8").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Recipt form").Select
    ActiveSheet.Paste
    Range("G17").Select
    Sheets("Bid - In progress").Select
    Range("H8").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Recipt form").Select
    ActiveSheet.Paste
    Range("I17").Select
    Sheets("Bid - In progress").Select
    Range("I8").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Recipt form").Select
    ActiveSheet.Paste
    Range("E18:I18").Select
    Sheets("Bid - In progress").Select
    Range("E8").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Recipt form").Select
    Range("E18:I18").Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    End Sub

    "Gary''s Student" wrote:

    > Post your code.
    > --
    > Gary's Student
    >
    >
    > "DonT" wrote:
    >
    > > I need some help! I have a workbook which has four sheets, the two that
    > > matter are named work in progress and receipt. My problem is that I need to
    > > copy the name, address, city, state, and zip code from the in progress sheet
    > > to the receipt sheet, one at a time and place them in the proper order. The
    > > problem with the macro is the range is set at the time of the recording, and
    > > the cells change each time I use it.
    > > For example when I recorded the macro I started on cell C4, copied name it
    > > to the receipt form, back to in progress, copied address to receipt, and so
    > > on. Now I want to copy the name in cell D4 but the macro is set for C4.
    > > I’m NOT a programer, I can record macro and understand a VERY little of
    > > visual basic. Can anyone help me???
    > >
    > > Thank you
    > > Don


+ 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