Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default How to capture user ID in Excel macro?

Don't know about capturing it from the dialog box, but this returns the
login user id

environ("UserName")

--
HTH

Bob Phillips

"Ivan" wrote in message
...
Dear all,

I have an Excel macro program which uses ADO connection. It connects to

our
AS/400 database. When the program connects to the AS/400 system for the

first
time after the program is opened, it prompts a AS/400 login dialogue box

and
then the user keys in his/her user name and password. If I want to capture
the user name from the AS/400 login dialogue box, then how to do it? How

to
write the code in Excel macro? Is it possible?
Thanks in advance!

Ivan



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
Capture user ID... Doolee Excel Discussion (Misc queries) 2 March 24th 08 07:20 PM
Excel screen capture to capture cells and row and column headings jayray Excel Discussion (Misc queries) 5 November 2nd 07 11:01 PM
capture DDE update value in VBA macro chs245 Excel Programming 5 April 14th 05 01:36 PM
capture DDE update value in VBA macro chs245 Excel Discussion (Misc queries) 1 April 13th 05 03:31 PM
How do I capture user paste action and convert to Paste Special DonC Excel Programming 0 November 19th 04 01:43 PM


All times are GMT +1. The time now is 11:52 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"