PC Review


Reply
Thread Tools Rate Thread

CAN files be accessed with a macro when closed

 
 
Berj
Guest
Posts: n/a
 
      3rd Dec 2007
Dear Anybody.

During recording a Macro, I have copied and pasted from different files and
sheets. In doing this, I have clicked on the files and sheets needed.
When the recorded Macro is running, it is maximizing the files needed
(considering they are open). This shows a lot of switching between windows
which is not needed.
- Can the window switching be disabled when the files are being accessed? How?
- Can the files be accessed even when they are closed? How?
Is there a way of adding a single command at the beginning of the macro to
do any of the things mentioned above?


Thanks in Advance.

 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      3rd Dec 2007


>
> During recording a Macro, I have copied and pasted from different files
> and
> sheets. In doing this, I have clicked on the files and sheets needed.
> When the recorded Macro is running, it is maximizing the files needed
> (considering they are open). This shows a lot of switching between windows
> which is not needed.
> - Can the window switching be disabled when the files are being accessed?
> How?
> - Can the files be accessed even when they are closed? How?
> Is there a way of adding a single command at the beginning of the macro to
> do any of the things mentioned above?
>
>
> Thanks in Advance.
>

Hi

Put this at the start of your code to prevent screenupdating.

Application.screenupdating =False


Just remember to set

Application.screenupdating = True

at the end of the code.

Regards

Per


 
Reply With Quote
 
Berj
Guest
Posts: n/a
 
      4th Dec 2007


"Per Jessen" wrote:

>
>
> >
> > During recording a Macro, I have copied and pasted from different files
> > and
> > sheets. In doing this, I have clicked on the files and sheets needed.
> > When the recorded Macro is running, it is maximizing the files needed
> > (considering they are open). This shows a lot of switching between windows
> > which is not needed.
> > - Can the window switching be disabled when the files are being accessed?
> > How?
> > - Can the files be accessed even when they are closed? How?
> > Is there a way of adding a single command at the beginning of the macro to
> > do any of the things mentioned above?
> >
> >
> > Thanks in Advance.
> >

> Hi
>
> Put this at the start of your code to prevent screenupdating.
>
> Application.screenupdating =False
>
>
> Just remember to set
>
> Application.screenupdating = True
>
> at the end of the code.
>
> Regards
>
> Per
>
>
>This helped a lot. Thank you.

But I still have a problem.
The files have to be open so that the Macro works.
Is there a command again which I can add at the beginning of the macro so
that the data in the files can be accessed even if they are closed?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pptx files are opening as zip files when accessed via the web Coldasnight Microsoft Powerpoint 4 26th Aug 2009 04:51 PM
Macro Security Prompt Not Appearing when Accessed by Keyboard CptMJCoper Microsoft Outlook Discussion 0 25th Aug 2009 10:15 PM
Outlook 2003 - Personal folder can not be closed or accessed!!! HE =?Utf-8?B?U2FuZyBMZWU=?= Microsoft Outlook Discussion 2 5th Apr 2006 09:28 PM
Macro to randomize and delete accessed hyperlinks twinklejmj Microsoft Excel Programming 3 20th Sep 2005 02:38 AM
Excel Macro Fails Accessed Through IE Browser Edward Robichaud Microsoft Excel Programming 0 22nd Sep 2003 11:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 PM.