Results 1 to 4 of 4

Thread: help with saveformat

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    3

    help with saveformat

    ok I'm new to visual I only am using it to create a macro for a word document. I have a form field on the page and I need to make it so whatever they type in that field the default save name of the file will be whatever they type into that field. (with me so far?)
    this is what I've been playing with so far and I'm not sure if i'm doing this right or not would appreciate some help thanks

    Function save()

    If CONumber <> "" Then

    Application.DefaultSaveFormat = "CONumber"

    Else

    Application.DefaultSaveFormat = ""

    End If

    End Function

    CONumber is the name of the field that people enter things into
    it pretty much is saying if I read it right that if CONumber is not blank then make the default save name whatever the value of CONumber is. am I doing this right or is something else supposed to be happening

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: help with saveformat

    Word VBA question moved to Office Development

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    3

    Re: help with saveformat

    oops sorry bout that hack like I said I don't know whats going on with what when it comes to VB

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    3

    Re: help with saveformat

    bah useless! all of you :P

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