LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Copying code behind from a sheet to a sheet in another workbook.

Hello,

(Environment Excel 2003)

I have a parent workbook (Say WB1.XLS) which contains code behind in its
sheet1.
I made a copy of WB1 say WB2.XLS.

Now the code behind in sheet1 in WB1 changed.

I need a programm that can compare the code between WB1.sheet1 and WB2.sheet1.

if vba code is different then
copy the code from WB1.Sheet1 to WB2.sheet1

At run time I can export/Import the modules (.BAS, .FRM, .CLS) . I tried
exporting sheets but they are stored as .CLS extentions and when I import
these sheets they come back as class modules (.CLS) 'not useful'.

With code I can get the count of lines of code for each sheet (which I can
use to compare ) but how to get the code itself from the sheet and once i get
the code how to insert that code in another sheet to overwrite ?

Any suggestions or ideas.

Thanks in advance

Nayan
 
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
Copying VBA Code from one Sheet to another Norman Jones Excel Programming 1 June 3rd 07 12:34 AM
Copying VBA Code from one Sheet to another Josh Excel Programming 7 June 2nd 07 08:38 PM
Copying sheet containing GetPivotData, new sheet references old workbook! rivkarak Excel Programming 0 January 18th 07 11:31 AM
Copying data from workbook/sheets to another workbook/sheet yukon_phil Excel Programming 0 July 26th 06 07:33 PM
Sheet Code Module: copying code to [email protected][_2_] Excel Programming 2 December 14th 04 01:57 AM


All times are GMT +1. The time now is 11:48 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"