Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default export as vba macro

is there some tool to export excel worksheet as vba code?
i mean, to create equal macro, which would, when run, recreate original
worksheet


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default export as vba macro

In the VBIDE you can export the code module (FileExport). This can then be
imported into any other workbook.

But if you mean code attached to the worksheet, this won't work as importing
fails, but you can move the code to a module and use simple single calls to
the macros from the worksheets.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sali" wrote in message
...
is there some tool to export excel worksheet as vba code?
i mean, to create equal macro, which would, when run, recreate original
worksheet




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default export as vba macro

i don't want to export *code*, i want to export worksheet *content* as a
code equivalent.
so, when that peace of code been run, the original worksheet is going to be
rebuilt.

it is something like having "macro record" button on all the time.



"Bob Phillips" wrote in message
...
In the VBIDE you can export the code module (FileExport). This can then

be
imported into any other workbook.

But if you mean code attached to the worksheet, this won't work as

importing
fails, but you can move the code to a module and use simple single calls

to
the macros from the worksheets.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sali" wrote in message
...
is there some tool to export excel worksheet as vba code?
i mean, to create equal macro, which would, when run, recreate original
worksheet






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default export as vba macro

Then that is worksheet specific, and I suggest you record a macro and
re-create from there.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sali" wrote in message
...
i don't want to export *code*, i want to export worksheet *content* as a
code equivalent.
so, when that peace of code been run, the original worksheet is going to

be
rebuilt.

it is something like having "macro record" button on all the time.



"Bob Phillips" wrote in message
...
In the VBIDE you can export the code module (FileExport). This can then

be
imported into any other workbook.

But if you mean code attached to the worksheet, this won't work as

importing
fails, but you can move the code to a module and use simple single calls

to
the macros from the worksheets.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sali" wrote in message
...
is there some tool to export excel worksheet as vba code?
i mean, to create equal macro, which would, when run, recreate

original
worksheet








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default export as vba macro

sorry for not being clear, this "record macro" was just as explanation.
does it mean that is not possible to export an *existing* excel sheet [or
even better whole workbook] as a equivalent macro set of coded instructions?

i may read cell by cell, prop by prop, and write output file with
appropriate macro code, but hoped to find some built-in solution.

thnx.


"Bob Phillips" wrote in message
...
Then that is worksheet specific, and I suggest you record a macro and
re-create from there.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sali" wrote in message
...
i don't want to export *code*, i want to export worksheet *content* as a
code equivalent.
so, when that peace of code been run, the original worksheet is going to

be
rebuilt.

it is something like having "macro record" button on all the time.



"Bob Phillips" wrote in message
...
In the VBIDE you can export the code module (FileExport). This can
then

be
imported into any other workbook.

But if you mean code attached to the worksheet, this won't work as

importing
fails, but you can move the code to a module and use simple single
calls

to
the macros from the worksheets.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sali" wrote in message
...
is there some tool to export excel worksheet as vba code?
i mean, to create equal macro, which would, when run, recreate

original
worksheet












  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default export as vba macro

Hi

Sorry, there is no such thing, I like the idea. What you want is a way to
store a meal as a recipe, the only semi-automatic way to do something like
that is to record the cook's actions.

HTH. Best wishes Harald


"sali" skrev i melding
...
sorry for not being clear, this "record macro" was just as explanation.
does it mean that is not possible to export an *existing* excel sheet [or
even better whole workbook] as a equivalent macro set of coded
instructions?

i may read cell by cell, prop by prop, and write output file with
appropriate macro code, but hoped to find some built-in solution.

thnx.


"Bob Phillips" wrote in message
...
Then that is worksheet specific, and I suggest you record a macro and
re-create from there.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sali" wrote in message
...
i don't want to export *code*, i want to export worksheet *content* as a
code equivalent.
so, when that peace of code been run, the original worksheet is going to

be
rebuilt.

it is something like having "macro record" button on all the time.



"Bob Phillips" wrote in message
...
In the VBIDE you can export the code module (FileExport). This can
then
be
imported into any other workbook.

But if you mean code attached to the worksheet, this won't work as
importing
fails, but you can move the code to a module and use simple single
calls
to
the macros from the worksheets.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sali" wrote in message
...
is there some tool to export excel worksheet as vba code?
i mean, to create equal macro, which would, when run, recreate

original
worksheet












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
Macro to export when printing sriddle Excel Discussion (Misc queries) 3 December 13th 08 12:32 AM
excel export Macro that does a filter Jerome_Ball Excel Discussion (Misc queries) 1 August 6th 08 03:17 PM
help with macro to export data Mayte Excel Worksheet Functions 2 April 27th 08 05:07 AM
excel xml export macro Dan Excel Discussion (Misc queries) 0 March 19th 08 03:16 PM
Record macro to export xml IoM Excel Programming 7 May 9th 05 09:49 PM


All times are GMT +1. The time now is 09:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"