+ Reply to Thread
Results 1 to 8 of 8

prompting for filenames

  1. #1
    dave glynn
    Guest

    prompting for filenames

    Is it possible to have a macro prompt fro a filename. for example if data has
    been copied from "oldfile" is it possible to have the macro ask which file it
    now has to be copied to?

    Many thanks

    Dave

  2. #2
    Dave Peterson
    Guest

    Re: prompting for filenames

    You could use something like:

    Option Explicit
    Sub testme()

    Dim myFilename As Variant
    myFilename = Application.GetSaveAsFilename

    If myFilename = False Then
    'user cancelled
    Else
    MsgBox "user selected: " & myFilename
    'but you have to do the work--save or whatever
    End If
    End Sub

    dave glynn wrote:
    >
    > Is it possible to have a macro prompt fro a filename. for example if data has
    > been copied from "oldfile" is it possible to have the macro ask which file it
    > now has to be copied to?
    >
    > Many thanks
    >
    > Dave


    --

    Dave Peterson

  3. #3
    dave glynn
    Guest

    Re: prompting for filenames

    Thanks yet again!!

    Kind regards

    Dave

    "Dave Peterson" wrote:

    > You could use something like:
    >
    > Option Explicit
    > Sub testme()
    >
    > Dim myFilename As Variant
    > myFilename = Application.GetSaveAsFilename
    >
    > If myFilename = False Then
    > 'user cancelled
    > Else
    > MsgBox "user selected: " & myFilename
    > 'but you have to do the work--save or whatever
    > End If
    > End Sub
    >
    > dave glynn wrote:
    > >
    > > Is it possible to have a macro prompt fro a filename. for example if data has
    > > been copied from "oldfile" is it possible to have the macro ask which file it
    > > now has to be copied to?
    > >
    > > Many thanks
    > >
    > > Dave

    >
    > --
    >
    > Dave Peterson
    >


  4. #4
    dave glynn
    Guest

    worksheet names

    I have a number of worksheets that are identical except that the workbook
    name changes with each company.

    Can I use the "real" name (i.e: sheet1) rather than the Excel (abcinc) name
    when getting data for a group report. This would save an imense amount of
    time as therer are 640 different sheets.

    Thanks


    Dave Glynn



  5. #5
    Anne Troy
    Guest

    Re: worksheet names

    What kind of report, Dave? Can you explain?
    Maybe this will help?
    http://www.officearticles.com/excel/...worksheets.htm
    ************
    Hope it helps!
    Anne Troy
    www.OfficeArticles.com

    "dave glynn" <daveglynn@discussions.microsoft.com> wrote in message
    news:90818B69-F890-436D-B90F-9A2E37E07625@microsoft.com...
    >I have a number of worksheets that are identical except that the workbook
    > name changes with each company.
    >
    > Can I use the "real" name (i.e: sheet1) rather than the Excel (abcinc)
    > name
    > when getting data for a group report. This would save an imense amount of
    > time as therer are 640 different sheets.
    >
    > Thanks
    >
    >
    > Dave Glynn
    >
    >




  6. #6
    David McRitchie
    Guest

    Re: worksheet names

    I'm not sure of what you want, but you can probably find something on
    my page on sheets, along with coding.

    here are actually three ways of addressing the sheet.
    sheet1
    'sheet1'
    sheet(1)

    For more information on addressing sheets see
    http://www.mvps.org/dmcritchie/excel/sheets.htm
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "dave glynn" <daveglynn@discussions.microsoft.com> wrote in message news:90818B69-F890-436D-B90F-9A2E37E07625@microsoft.com...
    > I have a number of worksheets that are identical except that the workbook
    > name changes with each company.
    >
    > Can I use the "real" name (i.e: sheet1) rather than the Excel (abcinc) name
    > when getting data for a group report. This would save an imense amount of
    > time as therer are 640 different sheets.
    >
    > Thanks
    >
    >
    > Dave Glynn
    >
    >




  7. #7
    dave glynn
    Guest

    posting

    it seems that i can no longer post new questions as the message box doesn't
    appear when i click on "new" so i have to go to an old question to post a new
    onw . any thoughts.

    thanks again


    dave


  8. #8
    Jim Cone
    Guest

    Re: posting

    dave,

    Give Outlook Express a try, here's how...
    http://www.tushar-mehta.com/misc_tut.../3_set_up.html

    Jim Cone
    San Francisco, USA
    http://www.realezsites.com/bus/primitivesoftware


    "dave glynn" <daveglynn@discussions.microsoft.com>
    wrote in message...
    it seems that i can no longer post new questions as the message box doesn't
    appear when i click on "new" so i have to go to an old question to post a new
    onw . any thoughts.
    thanks again
    dave


+ 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