+ Reply to Thread
Results 1 to 10 of 10

When updating a worksheet, how do I create a link updating the sa.

  1. #1
    Phlashh
    Guest

    When updating a worksheet, how do I create a link updating the sa.

    A worksheet residing on my C drive is also on my company intranet. How do I
    make changes to the C drive copy and have the same changes incorporated in
    the intranet copy?

  2. #2
    Bob Phillips
    Guest

    Re: When updating a worksheet, how do I create a link updating the sa.

    Copy the file after you have saved it?

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    > A worksheet residing on my C drive is also on my company intranet. How do

    I
    > make changes to the C drive copy and have the same changes incorporated in
    > the intranet copy?




  3. #3
    Gord Dibben
    Guest

    Re: When updating a worksheet, how do I create a link updating the sa.

    Or copy when you save it?

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    'Saves the current file to a backup folder and the default folder
    'Note that any backup is overwritten
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    ActiveWorkbook.Name
    ActiveWorkbook.Save
    Application.DisplayAlerts = True
    End Sub


    Gord Dibben Excel MVP

    On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    <bob.phillips@notheretiscali.co.uk> wrote:

    >Copy the file after you have saved it?
    >
    >--
    >
    >HTH
    >
    >RP
    >(remove nothere from the email address if mailing direct)
    >
    >
    >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    >> A worksheet residing on my C drive is also on my company intranet. How do

    >I
    >> make changes to the C drive copy and have the same changes incorporated in
    >> the intranet copy?

    >



  4. #4
    phlashh
    Guest

    Re: When updating a worksheet, how do I create a link updating the

    Thank you Gord, Where would I insert this code? in the primary sheet?

    "Gord Dibben" wrote:

    > Or copy when you save it?
    >
    > Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    > 'Saves the current file to a backup folder and the default folder
    > 'Note that any backup is overwritten
    > Application.DisplayAlerts = False
    > ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    > ActiveWorkbook.Name
    > ActiveWorkbook.Save
    > Application.DisplayAlerts = True
    > End Sub
    >
    >
    > Gord Dibben Excel MVP
    >
    > On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    > <bob.phillips@notheretiscali.co.uk> wrote:
    >
    > >Copy the file after you have saved it?
    > >
    > >--
    > >
    > >HTH
    > >
    > >RP
    > >(remove nothere from the email address if mailing direct)
    > >
    > >
    > >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    > >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    > >> A worksheet residing on my C drive is also on my company intranet. How do

    > >I
    > >> make changes to the C drive copy and have the same changes incorporated in
    > >> the intranet copy?

    > >

    >
    >


  5. #5
    Bob Phillips
    Guest

    Re: When updating a worksheet, how do I create a link updating the sa.

    Gord,

    I meant in the windows environment :-)

    Process, not automation!

    Bob

    "Gord Dibben" <gorddibbATshawDOTca> wrote in message
    news:nt7dv0dtqqpn9egbjfj2iu759r7n61jck0@4ax.com...
    > Or copy when you save it?
    >
    > Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As

    Boolean)
    > 'Saves the current file to a backup folder and the default folder
    > 'Note that any backup is overwritten
    > Application.DisplayAlerts = False
    > ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    > ActiveWorkbook.Name
    > ActiveWorkbook.Save
    > Application.DisplayAlerts = True
    > End Sub
    >
    >
    > Gord Dibben Excel MVP
    >
    > On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    > <bob.phillips@notheretiscali.co.uk> wrote:
    >
    > >Copy the file after you have saved it?
    > >
    > >--
    > >
    > >HTH
    > >
    > >RP
    > >(remove nothere from the email address if mailing direct)
    > >
    > >
    > >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    > >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    > >> A worksheet residing on my C drive is also on my company intranet. How

    do
    > >I
    > >> make changes to the C drive copy and have the same changes incorporated

    in
    > >> the intranet copy?

    > >

    >




  6. #6
    Gord Dibben
    Guest

    Re: When updating a worksheet, how do I create a link updating the

    It would be saved in the ThisWorkbook module.

    With workbook open and window maximized, right-click on the Excel icon left of
    "File" and select "View Code".

    Paste in there.

    Note: "intranet path" must be adjusted for your actual path.


    Gord

    On Tue, 25 Jan 2005 12:25:03 -0800, "phlashh"
    <phlashh@discussions.microsoft.com> wrote:

    >Thank you Gord, Where would I insert this code? in the primary sheet?
    >
    >"Gord Dibben" wrote:
    >
    >> Or copy when you save it?
    >>
    >> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    >> 'Saves the current file to a backup folder and the default folder
    >> 'Note that any backup is overwritten
    >> Application.DisplayAlerts = False
    >> ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    >> ActiveWorkbook.Name
    >> ActiveWorkbook.Save
    >> Application.DisplayAlerts = True
    >> End Sub
    >>
    >>
    >> Gord Dibben Excel MVP
    >>
    >> On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    >> <bob.phillips@notheretiscali.co.uk> wrote:
    >>
    >> >Copy the file after you have saved it?
    >> >
    >> >--
    >> >
    >> >HTH
    >> >
    >> >RP
    >> >(remove nothere from the email address if mailing direct)
    >> >
    >> >
    >> >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    >> >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    >> >> A worksheet residing on my C drive is also on my company intranet. How do
    >> >I
    >> >> make changes to the C drive copy and have the same changes incorporated in
    >> >> the intranet copy?
    >> >

    >>
    >>



  7. #7
    Gord Dibben
    Guest

    Re: When updating a worksheet, how do I create a link updating the sa.

    I knew that<g>

    Just offered an alternative for automation in case OP wanted it.


    Gord

    On Tue, 25 Jan 2005 21:06:24 -0000, "Bob Phillips"
    <bob.phillips@notheretiscali.co.uk> wrote:

    >Gord,
    >
    >I meant in the windows environment :-)
    >
    >Process, not automation!
    >
    >Bob
    >
    >"Gord Dibben" <gorddibbATshawDOTca> wrote in message
    >news:nt7dv0dtqqpn9egbjfj2iu759r7n61jck0@4ax.com...
    >> Or copy when you save it?
    >>
    >> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As

    >Boolean)
    >> 'Saves the current file to a backup folder and the default folder
    >> 'Note that any backup is overwritten
    >> Application.DisplayAlerts = False
    >> ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    >> ActiveWorkbook.Name
    >> ActiveWorkbook.Save
    >> Application.DisplayAlerts = True
    >> End Sub
    >>
    >>
    >> Gord Dibben Excel MVP
    >>
    >> On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    >> <bob.phillips@notheretiscali.co.uk> wrote:
    >>
    >> >Copy the file after you have saved it?
    >> >
    >> >--
    >> >
    >> >HTH
    >> >
    >> >RP
    >> >(remove nothere from the email address if mailing direct)
    >> >
    >> >
    >> >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    >> >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    >> >> A worksheet residing on my C drive is also on my company intranet. How

    >do
    >> >I
    >> >> make changes to the C drive copy and have the same changes incorporated

    >in
    >> >> the intranet copy?
    >> >

    >>

    >



  8. #8
    Bob Phillips
    Guest

    Re: When updating a worksheet, how do I create a link updating the sa.

    I thought you did, but sometimes it helps to spell out our thoughts for the
    originators (just in case <g>).

    And anyway, it's good to share a crack between old stagers (ebg>

    Bob


    "Gord Dibben" <gorddibbATshawDOTca> wrote in message
    news:deidv0hrgkdc15ai5k1ma99f82g8cor42f@4ax.com...
    > I knew that<g>
    >
    > Just offered an alternative for automation in case OP wanted it.
    >
    >
    > Gord
    >
    > On Tue, 25 Jan 2005 21:06:24 -0000, "Bob Phillips"
    > <bob.phillips@notheretiscali.co.uk> wrote:
    >
    > >Gord,
    > >
    > >I meant in the windows environment :-)
    > >
    > >Process, not automation!
    > >
    > >Bob
    > >
    > >"Gord Dibben" <gorddibbATshawDOTca> wrote in message
    > >news:nt7dv0dtqqpn9egbjfj2iu759r7n61jck0@4ax.com...
    > >> Or copy when you save it?
    > >>
    > >> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As

    > >Boolean)
    > >> 'Saves the current file to a backup folder and the default folder
    > >> 'Note that any backup is overwritten
    > >> Application.DisplayAlerts = False
    > >> ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    > >> ActiveWorkbook.Name
    > >> ActiveWorkbook.Save
    > >> Application.DisplayAlerts = True
    > >> End Sub
    > >>
    > >>
    > >> Gord Dibben Excel MVP
    > >>
    > >> On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    > >> <bob.phillips@notheretiscali.co.uk> wrote:
    > >>
    > >> >Copy the file after you have saved it?
    > >> >
    > >> >--
    > >> >
    > >> >HTH
    > >> >
    > >> >RP
    > >> >(remove nothere from the email address if mailing direct)
    > >> >
    > >> >
    > >> >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    > >> >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    > >> >> A worksheet residing on my C drive is also on my company intranet.

    How
    > >do
    > >> >I
    > >> >> make changes to the C drive copy and have the same changes

    incorporated
    > >in
    > >> >> the intranet copy?
    > >> >
    > >>

    > >

    >




  9. #9
    phlashh1
    Guest

    Re: When updating a worksheet, how do I create a link updating the

    Thank you so much for your help. BUT, I do have another question:
    instead of saving the whole workbook to the "backup" drive, how would I just
    save one worksheet of a workbook?

    "Gord Dibben" wrote:

    > I knew that<g>
    >
    > Just offered an alternative for automation in case OP wanted it.
    >
    >
    > Gord
    >
    > On Tue, 25 Jan 2005 21:06:24 -0000, "Bob Phillips"
    > <bob.phillips@notheretiscali.co.uk> wrote:
    >
    > >Gord,
    > >
    > >I meant in the windows environment :-)
    > >
    > >Process, not automation!
    > >
    > >Bob
    > >
    > >"Gord Dibben" <gorddibbATshawDOTca> wrote in message
    > >news:nt7dv0dtqqpn9egbjfj2iu759r7n61jck0@4ax.com...
    > >> Or copy when you save it?
    > >>
    > >> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As

    > >Boolean)
    > >> 'Saves the current file to a backup folder and the default folder
    > >> 'Note that any backup is overwritten
    > >> Application.DisplayAlerts = False
    > >> ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    > >> ActiveWorkbook.Name
    > >> ActiveWorkbook.Save
    > >> Application.DisplayAlerts = True
    > >> End Sub
    > >>
    > >>
    > >> Gord Dibben Excel MVP
    > >>
    > >> On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    > >> <bob.phillips@notheretiscali.co.uk> wrote:
    > >>
    > >> >Copy the file after you have saved it?
    > >> >
    > >> >--
    > >> >
    > >> >HTH
    > >> >
    > >> >RP
    > >> >(remove nothere from the email address if mailing direct)
    > >> >
    > >> >
    > >> >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    > >> >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    > >> >> A worksheet residing on my C drive is also on my company intranet. How

    > >do
    > >> >I
    > >> >> make changes to the C drive copy and have the same changes incorporated

    > >in
    > >> >> the intranet copy?
    > >> >
    > >>

    > >

    >
    >


  10. #10
    Bob Phillips
    Guest

    Re: When updating a worksheet, how do I create a link updating the

    You have to copy the worksheet to a new workbook and save that

    Worksheets("Sheet1").Copy
    ActiveWorkbook.SaveAs Filename:="myFile.xls"

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "phlashh1" <phlashh1@discussions.microsoft.com> wrote in message
    news:75315A43-67CE-4E42-B3E2-926AE426CD06@microsoft.com...
    > Thank you so much for your help. BUT, I do have another question:
    > instead of saving the whole workbook to the "backup" drive, how would I

    just
    > save one worksheet of a workbook?
    >
    > "Gord Dibben" wrote:
    >
    > > I knew that<g>
    > >
    > > Just offered an alternative for automation in case OP wanted it.
    > >
    > >
    > > Gord
    > >
    > > On Tue, 25 Jan 2005 21:06:24 -0000, "Bob Phillips"
    > > <bob.phillips@notheretiscali.co.uk> wrote:
    > >
    > > >Gord,
    > > >
    > > >I meant in the windows environment :-)
    > > >
    > > >Process, not automation!
    > > >
    > > >Bob
    > > >
    > > >"Gord Dibben" <gorddibbATshawDOTca> wrote in message
    > > >news:nt7dv0dtqqpn9egbjfj2iu759r7n61jck0@4ax.com...
    > > >> Or copy when you save it?
    > > >>
    > > >> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
    > > >Boolean)
    > > >> 'Saves the current file to a backup folder and the default folder
    > > >> 'Note that any backup is overwritten
    > > >> Application.DisplayAlerts = False
    > > >> ActiveWorkbook.SaveCopyAs Filename:="intranet path\" & _
    > > >> ActiveWorkbook.Name
    > > >> ActiveWorkbook.Save
    > > >> Application.DisplayAlerts = True
    > > >> End Sub
    > > >>
    > > >>
    > > >> Gord Dibben Excel MVP
    > > >>
    > > >> On Tue, 25 Jan 2005 17:17:35 -0000, "Bob Phillips"
    > > >> <bob.phillips@notheretiscali.co.uk> wrote:
    > > >>
    > > >> >Copy the file after you have saved it?
    > > >> >
    > > >> >--
    > > >> >
    > > >> >HTH
    > > >> >
    > > >> >RP
    > > >> >(remove nothere from the email address if mailing direct)
    > > >> >
    > > >> >
    > > >> >"Phlashh" <Phlashh@discussions.microsoft.com> wrote in message
    > > >> >news:84D0BD21-7A65-406E-8B92-2CEB6F0B58E9@microsoft.com...
    > > >> >> A worksheet residing on my C drive is also on my company intranet.

    How
    > > >do
    > > >> >I
    > > >> >> make changes to the C drive copy and have the same changes

    incorporated
    > > >in
    > > >> >> the intranet copy?
    > > >> >
    > > >>
    > > >

    > >
    > >




+ 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