+ Reply to Thread
Results 1 to 2 of 2

Auto create sheets and web query using VBA

  1. #1
    Registered User
    Join Date
    07-10-2004
    Posts
    37

    Auto create sheets and web query using VBA

    Hi

    In a main sheet I have a list of around 300 three letter codes (representing company names).

    1.)I want to create 300 individual sheets, still within the same workbook, named with these codes.

    2.)In each of these sheets I want to create a web query. The web query address in each sheet will be the same, apart from the three letter code by which the sheet is named.

    e.g. ABC in column A of main sheet, creates new sheet called ABC, with web query address www. xyz.co.uk/ABC.

    I guess this will need some VBA. I would be very grateful for any solutions or suggestions.

    Bertie.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Claytorm,

    Since you didn't mention which column the list is in, or the name of the main sheet, I am calling the mainsheet "Main" and the list "A:A" (Column "A"). You can change these accordingly. Also, I assume that the web query is actually a hyperlink. So each entry is created as a hyperlink in cell "A1". Clicking it will take you to the web address. You will have to change WebAddx in the code to web address you want.

    Please Login or Register  to view this content.
    If you have any questions or problems, let me by e-mail. My e-mail address is [email protected].

    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 05-09-2005 at 04:00 AM.

+ 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