Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Converting Environ("username") from 2003 to 2007

I'm in the process of migrating to MS Office 2007. Problem is once I convert
some code items that work in 2003 seem bomb out in 2007. Specifically, the
Environ("username") function. Does anyone know how this converted in 2007?
Thanks in advance for any help, it is greatly appreciated.

Scott
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Converting Environ("username") from 2003 to 2007

IIRC, I had to enter USERNAME in upper case.

"Chilidog" wrote:

I'm in the process of migrating to MS Office 2007. Problem is once I convert
some code items that work in 2003 seem bomb out in 2007. Specifically, the
Environ("username") function. Does anyone know how this converted in 2007?
Thanks in advance for any help, it is greatly appreciated.

Scott

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Converting Environ("username") from 2003 to 2007

Ignore the previous response. It works either way for me.

"Chilidog" wrote:

I'm in the process of migrating to MS Office 2007. Problem is once I convert
some code items that work in 2003 seem bomb out in 2007. Specifically, the
Environ("username") function. Does anyone know how this converted in 2007?
Thanks in advance for any help, it is greatly appreciated.

Scott

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Converting Environ("username") from 2003 to 2007

Is this associated with a particular reference that needs to be added in the
VB design window?

"Barb Reinhardt" wrote:

Ignore the previous response. It works either way for me.

"Chilidog" wrote:

I'm in the process of migrating to MS Office 2007. Problem is once I convert
some code items that work in 2003 seem bomb out in 2007. Specifically, the
Environ("username") function. Does anyone know how this converted in 2007?
Thanks in advance for any help, it is greatly appreciated.

Scott

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Converting Environ("username") from 2003 to 2007

Hi,

That hasn't changed

MsgBox Environ("Username")

works fine

Mike

"Chilidog" wrote:

I'm in the process of migrating to MS Office 2007. Problem is once I convert
some code items that work in 2003 seem bomb out in 2007. Specifically, the
Environ("username") function. Does anyone know how this converted in 2007?
Thanks in advance for any help, it is greatly appreciated.

Scott



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Converting Environ("username") from 2003 to 2007

Environ("username") returns the Windows login username.

Might be the problem lies with the OS and method of login??

I run only WindowsXP with multiple users so can't test.


Gord Dibben MS Excel MVP

On Thu, 17 Sep 2009 06:42:09 -0700, Chilidog
wrote:

Is this associated with a particular reference that needs to be added in the
VB design window?

"Barb Reinhardt" wrote:

Ignore the previous response. It works either way for me.

"Chilidog" wrote:

I'm in the process of migrating to MS Office 2007. Problem is once I convert
some code items that work in 2003 seem bomb out in 2007. Specifically, the
Environ("username") function. Does anyone know how this converted in 2007?
Thanks in advance for any help, it is greatly appreciated.

Scott


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
Converting from "Trial Version" to Excel 2007 kiki2 Excel Discussion (Misc queries) 1 August 30th 09 02:46 PM
Environ("USERNAME") Heera Excel Programming 5 August 12th 09 01:54 PM
environ username vs. application username jatman Excel Programming 4 May 28th 09 08:40 AM
Converting "uppercase" string data to "lower case" in CSV file [email protected] Excel Discussion (Misc queries) 2 August 12th 08 08:36 PM
Environ("username") riso Excel Programming 11 March 9th 07 10:43 AM


All times are GMT +1. The time now is 02:14 PM.

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

About Us

"It's about Microsoft Excel"