Copy to formated letter

samitnair

Board Regular
Joined
Jul 5, 2010
Messages
155
Hi I am looking for a vb for copying data into a formatted letter......I have posted the two sheets for better understanding......

Sheet 1: LETTER (Destination sheet)
24dk7wk.jpg


Sheet 2: CFORM (Sheet with data)
2ujtfrk.jpg


Now with reference to the pic if i enter a customer name as ABC in sheet Letter ....i need the vb to copy C3:H3,C5:H5 and C7:H7 from sheet CFORM and paste it in sheet letter B14:G16.....But if you observe B16 in sheet "letter" therz already a line entered so i suggest the vb must insert row and paste the value so that the format of the text is maintained.....Hope u got my idea and will help me
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi I made some efforts to find individual vb's to achieve my target and i even tried to modify the same but i get errors above my knowledge....

VB to Sort

http://www.mrexcel.com/forum/showthread.php?t=75294

VB to compare two sheets

http://www.mrexcel.com/forum/showthread.php?t=330477

VB to find copy and paste

http://en.allexperts.com/q/Excel-1059/EXCEL-VBA-FIND-COPY-1.htm

Please help me...can any VB gurus help me in compiling the 3 into one or create a new VB which suits my requirement

Regards
sam
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top