MsQuery Password issue

Baziwan

New Member
Joined
Sep 4, 2018
Messages
32
Hi,

I have a macro that runs 4 queries, however, it prompts for a password check for every query. I have them set up to remember the password & it is auto-filling the password but I still have to click ok 4 times for each query. How do I make it so that i only have to confirm the password once?

Thanks in advance
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
why not just remove 3 of the (im assuming) input boxes?
 
Upvote 0
My bad, completely didn't explain this properly at all.

My problem I guess isn't with the macro. It's when I come to refresh!

Code:
ActiveWorkbook.RefreshAll

I use this in my macro and it refreshes 4 queries & for each query I'm prompted to click ok on the password prompt. Would like it if it only prompted once.
Sorry for the confusion.
 
Upvote 0
can you post the code? As well as any workbook/worksheet events you might have.
 
Upvote 0

Forum statistics

Threads
1,214,383
Messages
6,119,198
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top