Results 1 to 2 of 2

Thread: create new excel tab using vb

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Minnesota
    Posts
    830
    Currently I have an application that puts data into a excel file in select locations each month. I manually have to go to excel and create a new tab in my file and then change some code to put data in the right tab.

    Does anyone know how I can do this with code so I don't have to manually do this process?

    Thanks for any help.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    you mean add sheets?

    in excel:
    worksheets.add
    activesheet.name = "???"


    in vb..just add the excel object name infront!


    good tip...Can't figure it out? create a macro and view the code! good stuff in there!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

Posting Permissions

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



Click Here to Expand Forum to Full Width