Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default application.Value(Variable)

Hi Group,

Brought in a text value via InputBox, "NoWks", which I am
trying to make into a value. Done this before, but am
using 2003, maybe something has changed?

Immediate window:
?application.value(NoWks)
Get message "wrong number of arguments"

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default application.Value(Variable)

As far as I know there is no Application.Value. What do you expect to get
from

application.Value(NoWks)

is NoWks a variable that holds a value?

NoWks = InputBox("Please enter a number")

if so,

? cdbl(NoWks)

or
? clng(NoWks)

--
Regards,
Tom Ogilvy

"David" wrote in message
...
Hi Group,

Brought in a text value via InputBox, "NoWks", which I am
trying to make into a value. Done this before, but am
using 2003, maybe something has changed?

Immediate window:
?application.value(NoWks)
Get message "wrong number of arguments"

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default application.Value(Variable)

i am trying to turn the text into a value, number.
-----Original Message-----
As far as I know there is no Application.Value. What do

you expect to get
from

application.Value(NoWks)

is NoWks a variable that holds a value?

NoWks = InputBox("Please enter a number")

if so,

? cdbl(NoWks)

or
? clng(NoWks)

--
Regards,
Tom Ogilvy

"David" wrote in

message
...
Hi Group,

Brought in a text value via InputBox, "NoWks", which I

am
trying to make into a value. Done this before, but am
using 2003, maybe something has changed?

Immediate window:
?application.value(NoWks)
Get message "wrong number of arguments"

Thanks




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default application.Value(Variable)

Maybe you are thinking of
Application.WorksheetFunction.Value

Marcotte
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default application.Value(Variable)

if he was, it makes no difference. Neither

application.Worksheetfunction.Value or
application.Value are valid

This is one worksheet function that isn't supported in VBA.

--
Regards,
Tom Ogilvy



"Marcotte A" wrote in message
...
Maybe you are thinking of
Application.WorksheetFunction.Value

Marcotte





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default application.Value(Variable)

So I gave you a way to do it.

--
Regards,
Tom Ogilvy

"David" wrote in message
...
i am trying to turn the text into a value, number.
-----Original Message-----
As far as I know there is no Application.Value. What do

you expect to get
from

application.Value(NoWks)

is NoWks a variable that holds a value?

NoWks = InputBox("Please enter a number")

if so,

? cdbl(NoWks)

or
? clng(NoWks)

--
Regards,
Tom Ogilvy

"David" wrote in

message
...
Hi Group,

Brought in a text value via InputBox, "NoWks", which I

am
trying to make into a value. Done this before, but am
using 2003, maybe something has changed?

Immediate window:
?application.value(NoWks)
Get message "wrong number of arguments"

Thanks




.



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
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
Cells.Find error Object variable or With block variable not set Peter[_21_] Excel Programming 2 May 8th 04 02:15 PM
application.quit will not shut off application john Excel Programming 0 January 9th 04 11:29 PM
Excel application: Summing several terms (some constant, some variable) David Excel Programming 1 August 12th 03 01:09 AM


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

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"