Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default update older workbook


Hi

I have a workbook which has been sent out to all our branches however I
would like to send them an updated version. The orginal workbook sent
ouot contained a worksheet which stored all their data. What I want to
do is copy this worksheet into my new version etc. however my problem
is the orignal workbook uses a user friendly userform which has the the
"X" close button disabled and has a button to "save and close" the
program. the userform is automatically loaded as soon as the workbook
is open.

1) I dont know where they would have stored it so I was thinking of
telling them to open it up first and then open my update program which
will exact that sheet.

2) not sure if they renamed the file.

Any ideas how a could close that userform that pops up with out run the
save & close button?


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=394128

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default update older workbook

HI

I would first ask them to open your book, then start your macro.
Application.Enableevents=false 'will prevent the userform to popup on
opening the old wb
strFile = Application.GetOpenFilename( "see in help")'user has to locate
himself the old wb
If strFile = "False" Then Exit Sub
workbook.open strfile
'do your stuff
'close and save
Application.Enableevents=True

Regards
Jean-Yves

"funkymonkUK"
wrote in message
...

Hi

I have a workbook which has been sent out to all our branches however I
would like to send them an updated version. The orginal workbook sent
ouot contained a worksheet which stored all their data. What I want to
do is copy this worksheet into my new version etc. however my problem
is the orignal workbook uses a user friendly userform which has the the
"X" close button disabled and has a button to "save and close" the
program. the userform is automatically loaded as soon as the workbook
is open.

1) I dont know where they would have stored it so I was thinking of
telling them to open it up first and then open my update program which
will exact that sheet.

2) not sure if they renamed the file.

Any ideas how a could close that userform that pops up with out run the
save & close button?


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile:

http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=394128



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
WorkBook Update NotGood@All Excel Worksheet Functions 4 February 2nd 09 11:43 PM
update workbook MAANI Excel Worksheet Functions 1 August 6th 08 10:50 AM
workbook change and update Sofia Grave Excel Worksheet Functions 0 February 27th 08 08:46 AM
Can one workbook/sheet update another workbook? jtpryan Excel Discussion (Misc queries) 0 November 13th 07 03:56 PM
Update a shared workbook. Unknown_User[_8_] Excel Programming 6 May 25th 04 09:06 PM


All times are GMT +1. The time now is 10:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"