+ Reply to Thread
Results 1 to 5 of 5

Excel Sheet generator

  1. #1
    Tomasz Klim
    Guest

    Excel Sheet generator

    Hi

    I need a tool, that can analyse existing Excel Sheet, and generate
    Visual Basic 6.0 / VBA code, able to generate this sheet from scratch
    (add new blank sheet, apply all changes).

    I'm interested in column/row sizes, cell colors, borders, cell values,
    and formulas. I don't need support for VBA.

    Does anybody known such tool?



  2. #2
    Gary''s Student
    Guest

    RE: Excel Sheet generator

    Hi Tomasz:

    First create a template worksheet with all you formatting in place. Then
    its just a matter of pulling-down:

    Edit > Move or Copy Sheet... > and select template and click make a copy.

    If you are comfortable with VBA:

    Sub Macro1()
    Sheets("template").Copy After:=Sheets("template")
    End Sub
    --
    Gary's Student


    "Tomasz Klim" wrote:

    > Hi
    >
    > I need a tool, that can analyse existing Excel Sheet, and generate
    > Visual Basic 6.0 / VBA code, able to generate this sheet from scratch
    > (add new blank sheet, apply all changes).
    >
    > I'm interested in column/row sizes, cell colors, borders, cell values,
    > and formulas. I don't need support for VBA.
    >
    > Does anybody known such tool?
    >
    >
    >


  3. #3
    Tomasz Klim
    Guest

    Re: Excel Sheet generator

    Yes, I know that way. But I have a very complicated sheet. Well, the sheet
    itself is very simple, but has many many columns, rows etc., and VBA code
    inserting data from database into these rows/columns.

    So each time I want to add new row between existing rows, I have to change a
    few hundreds of row references. And if I got code generating this sheet from
    scratch, I could modify it and put in some rules, that would simplify my
    job.

    I'm asking, because I've seen such a sheet-parser, that generates a set of
    forms in PHP - so maybe there is one for Visual Basic...


    Użytkownik "Gary''s Student" <[email protected]>
    napisał w wiadomości
    news:[email protected]...
    > Hi Tomasz:
    >
    > First create a template worksheet with all you formatting in place. Then
    > its just a matter of pulling-down:
    >
    > Edit > Move or Copy Sheet... > and select template and click make a copy.
    >
    > If you are comfortable with VBA:
    >
    > Sub Macro1()
    > Sheets("template").Copy After:=Sheets("template")
    > End Sub
    > --
    > Gary's Student
    >
    >
    > "Tomasz Klim" wrote:
    >
    >> Hi
    >>
    >> I need a tool, that can analyse existing Excel Sheet, and generate
    >> Visual Basic 6.0 / VBA code, able to generate this sheet from scratch
    >> (add new blank sheet, apply all changes).
    >>
    >> I'm interested in column/row sizes, cell colors, borders, cell values,
    >> and formulas. I don't need support for VBA.
    >>
    >> Does anybody known such tool?
    >>
    >>
    >>




  4. #4
    Gary''s Student
    Guest

    Re: Excel Sheet generator

    If you do this process manually, turn on the Macro Recorder. At a minimum
    you would get a macro that you could then edit for changes.

    Inserting rows should not cause you to edit formulae.


    Look for the over-use of absolute references and remove them. Things like
    =$A$3 can cause problems.
    --
    Gary's Student


    "Tomasz Klim" wrote:

    > Yes, I know that way. But I have a very complicated sheet. Well, the sheet
    > itself is very simple, but has many many columns, rows etc., and VBA code
    > inserting data from database into these rows/columns.
    >
    > So each time I want to add new row between existing rows, I have to change a
    > few hundreds of row references. And if I got code generating this sheet from
    > scratch, I could modify it and put in some rules, that would simplify my
    > job.
    >
    > I'm asking, because I've seen such a sheet-parser, that generates a set of
    > forms in PHP - so maybe there is one for Visual Basic...
    >
    >
    > UÂżytkownik "Gary''s Student" <[email protected]>
    > napisaÂł w wiadomoÂści
    > news:[email protected]...
    > > Hi Tomasz:
    > >
    > > First create a template worksheet with all you formatting in place. Then
    > > its just a matter of pulling-down:
    > >
    > > Edit > Move or Copy Sheet... > and select template and click make a copy.
    > >
    > > If you are comfortable with VBA:
    > >
    > > Sub Macro1()
    > > Sheets("template").Copy After:=Sheets("template")
    > > End Sub
    > > --
    > > Gary's Student
    > >
    > >
    > > "Tomasz Klim" wrote:
    > >
    > >> Hi
    > >>
    > >> I need a tool, that can analyse existing Excel Sheet, and generate
    > >> Visual Basic 6.0 / VBA code, able to generate this sheet from scratch
    > >> (add new blank sheet, apply all changes).
    > >>
    > >> I'm interested in column/row sizes, cell colors, borders, cell values,
    > >> and formulas. I don't need support for VBA.
    > >>
    > >> Does anybody known such tool?
    > >>
    > >>
    > >>

    >
    >
    >


  5. #5
    Tomasz Klim
    Guest

    Re: Excel Sheet generator

    I also know this. But this sheet is already done, so recording wouldn't
    help.

    The main problem is that I have VBA code with SQL queries, that use CASE
    statements to generate row/column numbers:
    Cells(RS("row"),RS("column"))=RS("sum")
    where the column number is stored in database, and row number is computed
    from:
    case when x='green' then 3 when x='red' then 4 else 2 end as row

    So inserting a new row requires me to edit all these SQL queries.


    Użytkownik "Gary''s Student" <[email protected]>
    napisał w wiadomości
    news:[email protected]...
    > If you do this process manually, turn on the Macro Recorder. At a minimum
    > you would get a macro that you could then edit for changes.
    >
    > Inserting rows should not cause you to edit formulae.
    >
    >
    > Look for the over-use of absolute references and remove them. Things like
    > =$A$3 can cause problems.
    > --
    > Gary's Student
    >
    >
    > "Tomasz Klim" wrote:
    >
    >> Yes, I know that way. But I have a very complicated sheet. Well, the
    >> sheet
    >> itself is very simple, but has many many columns, rows etc., and VBA code
    >> inserting data from database into these rows/columns.
    >>
    >> So each time I want to add new row between existing rows, I have to
    >> change a
    >> few hundreds of row references. And if I got code generating this sheet
    >> from
    >> scratch, I could modify it and put in some rules, that would simplify my
    >> job.
    >>
    >> I'm asking, because I've seen such a sheet-parser, that generates a set
    >> of
    >> forms in PHP - so maybe there is one for Visual Basic...
    >>
    >>
    >> U?ytkownik "Gary''s Student" <[email protected]>
    >> napisa3 w wiadomo?ci
    >> news:[email protected]...
    >> > Hi Tomasz:
    >> >
    >> > First create a template worksheet with all you formatting in place.
    >> > Then
    >> > its just a matter of pulling-down:
    >> >
    >> > Edit > Move or Copy Sheet... > and select template and click make a
    >> > copy.
    >> >
    >> > If you are comfortable with VBA:
    >> >
    >> > Sub Macro1()
    >> > Sheets("template").Copy After:=Sheets("template")
    >> > End Sub
    >> > --
    >> > Gary's Student
    >> >
    >> >
    >> > "Tomasz Klim" wrote:
    >> >
    >> >> Hi
    >> >>
    >> >> I need a tool, that can analyse existing Excel Sheet, and generate
    >> >> Visual Basic 6.0 / VBA code, able to generate this sheet from scratch
    >> >> (add new blank sheet, apply all changes).
    >> >>
    >> >> I'm interested in column/row sizes, cell colors, borders, cell values,
    >> >> and formulas. I don't need support for VBA.
    >> >>
    >> >> Does anybody known such tool?
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1