Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DonT
 
Posts: n/a
Default 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.
Im NOT a programer, I can record macro and understand a VERY little of
visual basic. Can anyone help me???

Thank you
Don
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default 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.
Im NOT a programer, I can record macro and understand a VERY little of
visual basic. Can anyone help me???

Thank you
Don

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DonT
 
Posts: n/a
Default 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.
Im NOT a programer, I can record macro and understand a VERY little of
visual basic. Can anyone help me???

Thank you
Don

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight Range - wrong macro, please edit. Danny Excel Worksheet Functions 8 October 19th 05 11:11 PM
Copying as Picture Link - using Macro Kamal Excel Discussion (Misc queries) 3 June 30th 05 12:07 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Copying Text to Clip Board Using a Macro robertguy Excel Discussion (Misc queries) 3 February 17th 05 01:11 AM


All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"