PC Review


Reply
Thread Tools Rate Thread

Change A Line in A Module Using VBA Code

 
 
derrick
Guest
Posts: n/a
 
      3rd Jul 2008
Hi,

I have about a 100 workbooks all with the same VBA code in them. I
need to change a line in the VBA code in each of them and would like
to use code rather than opening each of the workbooks and changing it.

Can this be done? I just need the code to reference the line and make
the change - I have the code to open each workbook and close it
already in a directory.

Thanks,
Derrick
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      3rd Jul 2008
You can see how to program the VBE/modify code with code by looking at Chip
Pearson's site

http://www.cpearson.com/excel/vbe.aspx

--
Regards,
Tom Ogilvy


"derrick" wrote:

> Hi,
>
> I have about a 100 workbooks all with the same VBA code in them. I
> need to change a line in the VBA code in each of them and would like
> to use code rather than opening each of the workbooks and changing it.
>
> Can this be done? I just need the code to reference the line and make
> the change - I have the code to open each workbook and close it
> already in a directory.
>
> Thanks,
> Derrick
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Private Sub to module code?? nybaseball22@gmail.com Microsoft Access Form Coding 1 30th Dec 2007 02:55 AM
Code to change code in a sheet and workbook module Otto Moehrbach Microsoft Excel Programming 11 11th Nov 2007 07:20 PM
WithEvents code in module cannot change textbox on main form JoelH@GlobalF.com Microsoft VB .NET 3 15th Jun 2006 02:33 PM
VB6 - Access ADP Database Custom Property / Or Read Line of Code In ADP Code Module WhatTha Microsoft Access VBA Modules 0 24th Jan 2006 03:26 PM
On Error, Capturing current module and actual line of code Paul Martin Microsoft Excel Programming 4 13th Jun 2004 06:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 AM.