#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Codes

Hi All,

Is there a way to obtain or export codes from modules from a closed workbook.
The modules do not have password protection.

Thanks for your help.

A Silsila
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Codes

for a start, how would you reference a closed workbook.

so no, I doubt you can do that.

--
Regards,
Tom Ogilvy

"A1silsila" wrote in message
...
Hi All,

Is there a way to obtain or export codes from modules from a closed

workbook.
The modules do not have password protection.

Thanks for your help.

A Silsila



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Codes

If the data is structured, you could read it using ADO.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"A1silsila" wrote in message
...
Hi All,

Is there a way to obtain or export codes from modules from a closed

workbook.
The modules do not have password protection.

Thanks for your help.

A Silsila



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Codes

Can ADO really read source code from a closed Workbook? Amazing!

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Bob Phillips" wrote in message
...
If the data is structured, you could read it using ADO.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"A1silsila" wrote in message
...
Hi All,

Is there a way to obtain or export codes from modules from a closed

workbook.
The modules do not have password protection.

Thanks for your help.

A Silsila





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Codes

Yes, it is just another data source. There is an ODBC and an OLEDB Data
provider that can provide the access. You can even read text files, even
Active Directories.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Rob van Gelder" wrote in message
...
Can ADO really read source code from a closed Workbook? Amazing!

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Bob Phillips" wrote in message
...
If the data is structured, you could read it using ADO.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"A1silsila" wrote in message
...
Hi All,

Is there a way to obtain or export codes from modules from a closed

workbook.
The modules do not have password protection.

Thanks for your help.

A Silsila









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Codes

Does this mean I have to rewrite my VBA in columns or is there some
other way of structuring it?

Bob Phillips wrote:

Yes, it is just another data source. There is an ODBC and an OLEDB Data
provider that can provide the access. You can even read text files, even
Active Directories.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Codes

I won't believe it until I see it :)
I've seen OLEDB pull data from worksheets cells, but have never seen OLEDB
pull VBA code from modules.

I would be interested in seeing samples which extracts VBA code from a
closed workbook. Which OLEDB provider handles this?


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Bob Phillips" wrote in message
...
Yes, it is just another data source. There is an ODBC and an OLEDB Data
provider that can provide the access. You can even read text files, even
Active Directories.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Rob van Gelder" wrote in message
...
Can ADO really read source code from a closed Workbook? Amazing!

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Bob Phillips" wrote in message
...
If the data is structured, you could read it using ADO.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"A1silsila" wrote in message
...
Hi All,

Is there a way to obtain or export codes from modules from a closed
workbook.
The modules do not have password protection.

Thanks for your help.

A Silsila








  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Codes

I think we are talking cross-purposes Rob<vbg. I interpreted codes from
modules as data from worksheet modules, you (probably correctly now that I
read it again) as code (as in the collective singular) from VBE modules.

If you are right (probably correctly now that I read it again) forget what I
have said. I thought it odd that you were not aware of that <G. Oh well,
all good fun.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Rob van Gelder" wrote in message
...
I won't believe it until I see it :)
I've seen OLEDB pull data from worksheets cells, but have never seen OLEDB
pull VBA code from modules.

I would be interested in seeing samples which extracts VBA code from a
closed workbook. Which OLEDB provider handles this?


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Bob Phillips" wrote in message
...
Yes, it is just another data source. There is an ODBC and an OLEDB Data
provider that can provide the access. You can even read text files, even
Active Directories.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Rob van Gelder" wrote in

message
...
Can ADO really read source code from a closed Workbook? Amazing!

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Bob Phillips" wrote in message
...
If the data is structured, you could read it using ADO.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"A1silsila" wrote in message
...
Hi All,

Is there a way to obtain or export codes from modules from a

closed
workbook.
The modules do not have password protection.

Thanks for your help.

A Silsila










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
GL Codes Jonny54321 Excel Worksheet Functions 1 May 14th 09 05:08 AM
Help with codes please!! Nick TKA Excel Discussion (Misc queries) 0 April 28th 06 12:47 PM
Zip Codes Queen Excel Discussion (Misc queries) 3 February 18th 05 02:47 PM
Zip Codes [email protected] Excel Discussion (Misc queries) 10 November 27th 04 05:23 PM
where are my VB codes Jane[_4_] Excel Programming 1 October 23rd 03 11:50 PM


All times are GMT +1. The time now is 04:45 AM.

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"