PC Review


Reply
Thread Tools Rate Thread

Disable Data Connection

 
 
Roopa
Guest
Posts: n/a
 
      11th Dec 2008
Hi,
I am using Activeworkbook.Refreshall in one of my functions.
But when I go offline its displaying dialog box "Microsoft Access Database
Engine" to connect again.
But I want to disable the dialog box or close the connection if I go offline.
Can anybody let me know how i can do this?
Thanks.

 
Reply With Quote
 
 
 
 
Michael
Guest
Posts: n/a
 
      11th Dec 2008
A simple solution could be to copy paste values to a different worksheet at
the end of your subroutine.
Or maybe
Application.DisplayAlerts = False
based on a paritcular event, on Exit

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Roopa" wrote:

> Hi,
> I am using Activeworkbook.Refreshall in one of my functions.
> But when I go offline its displaying dialog box "Microsoft Access Database
> Engine" to connect again.
> But I want to disable the dialog box or close the connection if I go offline.
> Can anybody let me know how i can do this?
> Thanks.
>

 
Reply With Quote
 
Roopa
Guest
Posts: n/a
 
      11th Dec 2008
Hi Michael,
Thanks for the reply.
But I tried Application.DisplayAlerts = False
but its not working.
And about copy paste values,
I have connection to Sharepoint site in which my Budget file is resided.
I get data from budget file and if any changes in the file it should reflect
in my excel workbook.
Can you please tell me anyway I can achieve this.
Thanks alot.

"Michael" wrote:

> A simple solution could be to copy paste values to a different worksheet at
> the end of your subroutine.
> Or maybe
> Application.DisplayAlerts = False
> based on a paritcular event, on Exit
>
> --
> If this posting was helpful, please click on the Yes button.
> Regards,
>
> Michael Arch.
>
>
>
>
> "Roopa" wrote:
>
> > Hi,
> > I am using Activeworkbook.Refreshall in one of my functions.
> > But when I go offline its displaying dialog box "Microsoft Access Database
> > Engine" to connect again.
> > But I want to disable the dialog box or close the connection if I go offline.
> > Can anybody let me know how i can do this?
> > Thanks.
> >

 
Reply With Quote
 
Michael
Guest
Posts: n/a
 
      11th Dec 2008
This a generic copying subroutine posted in this discussion group a while
ago, but i should do the trick, you must tweak it, it uses column A if you
want a different column change the number 1 on the following line to the
column number you need
sh1.Cells(i,1).Text & " " & sh1.cells(i,2).Text
and change the sheet names to suit your needs.

Sub copydata()
Dim sh1 as worksheet, sh2 as worksheet
Dim numrows as string
sh1 = Workbooks("Book1.xls").Worksheets("sheet1")
sh2 = Workbooks("Book2.xls").Worksheets("Sheet1")
numrows = Application.InputBox("Enter number of rows")
if isnumber(numrows) then
for i = 1 to int(numrows)
sh2.Cells(i,1) = sh1.Cells(i,1).Text & " " & sh1.cells(i,2).Text
next
end if
End sub


--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Roopa" wrote:

> Hi Michael,
> Thanks for the reply.
> But I tried Application.DisplayAlerts = False
> but its not working.
> And about copy paste values,
> I have connection to Sharepoint site in which my Budget file is resided.
> I get data from budget file and if any changes in the file it should reflect
> in my excel workbook.
> Can you please tell me anyway I can achieve this.
> Thanks alot.
>
> "Michael" wrote:
>
> > A simple solution could be to copy paste values to a different worksheet at
> > the end of your subroutine.
> > Or maybe
> > Application.DisplayAlerts = False
> > based on a paritcular event, on Exit
> >
> > --
> > If this posting was helpful, please click on the Yes button.
> > Regards,
> >
> > Michael Arch.
> >
> >
> >
> >
> > "Roopa" wrote:
> >
> > > Hi,
> > > I am using Activeworkbook.Refreshall in one of my functions.
> > > But when I go offline its displaying dialog box "Microsoft Access Database
> > > Engine" to connect again.
> > > But I want to disable the dialog box or close the connection if I go offline.
> > > Can anybody let me know how i can do this?
> > > Thanks.
> > >

 
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
disable LAN connection cmd Crios Windows XP General 2 19th Jan 2008 05:34 AM
Cannot disable connection Sdruws Windows XP Networking 0 15th May 2007 09:23 PM
Cannot disable connection Sdruws Windows XP Networking 0 15th May 2007 09:23 PM
Cannot disable connection Sdruws Windows XP Networking 0 15th May 2007 04:20 PM
Disable all X-vnc connection...How? carenzio77 Windows XP Help 1 3rd Aug 2006 09:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:51 AM.