|
-
Jun 1st, 2006, 07:00 AM
#1
Thread Starter
Fanatic Member
Copying sheets
Hi
I have an excel worksheet wkh1.I want to copy data from THE COLUMN A of wkh1 to the column L of a worksheet wkh2
I use the following code to copy a worksheet and paste it to another worksheet
wksSource.Cells.Copy wksTarget.Cells
how can i copy the column A from wksSource to the Column L of wksTarget
Thanks in advance
-
Jun 1st, 2006, 07:03 AM
#2
Re: Copying sheets
Record a macro of you performing the task. Then check out the generated odule code and modify as needed.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 1st, 2006, 07:51 AM
#3
Thread Starter
Fanatic Member
Re: Copying sheets
Well
I tried the code provided by a macro and I applied it into my VB6 code but it didn't work
What I need is to copy the data in column A in sheet1 of my workbook and paste the data into column L in Sheet2 OF the same workbook.
Can anyone help me?
thanks
-
Jun 1st, 2006, 08:57 AM
#4
Re: Copying sheets
See the Excel Tutorial link in my signature - it explains how to convert a macro to VB6 code.
-
Jun 1st, 2006, 10:04 AM
#5
Re: Copying sheets
What I need is to copy the data in column A in sheet1 of my workbook and paste the data into column L in Sheet2
VB Code:
Worksheets(1).Columns(1).Copy Worksheets(2).Columns(12)
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|