Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Ranges values with properties problems

Hi everyone,

I have a problem that i do not know how to solve.
I have two user forms that are "sending" a value to a place in an excel
sheet.
When the value is sent to the sheed a warning apears on the sheet.
It seems that the value has been sent to the sheet as text rather than a
number.

The two rows of code a

GE_Brightness.Value = Range("AA12:AA5000").Find(Select_entry,
LookIn:=xlValues).Offset(0, -20).Value

and

Range("A65536").End(xlUp).Offset(1, 6).Value = GE_Brightness.Value

How do i get the value to become a "number" rather than "text".
I get problems since i than have some conditional formating that do not like
"text".


Thank you in advance

Melker



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Ranges values with properties problems

Melker,

What is GE_Brightness, a variabel? If so, this line looks wrong to me

GE_Brightness.Value = Range("AA12:AA5000").Find(Select_entry,
LookIn:=xlValues).Offset(0, -20).Value

it should be

GE_Brightness = Range("AA12:AA5000").Find(Select_entry,
LookIn:=xlValues).Offset(0, -20).Value


--

HTH

RP

"Melker" wrote in message
...
Hi everyone,

I have a problem that i do not know how to solve.
I have two user forms that are "sending" a value to a place in an excel
sheet.
When the value is sent to the sheed a warning apears on the sheet.
It seems that the value has been sent to the sheet as text rather than a
number.

The two rows of code a

GE_Brightness.Value = Range("AA12:AA5000").Find(Select_entry,
LookIn:=xlValues).Offset(0, -20).Value

and

Range("A65536").End(xlUp).Offset(1, 6).Value = GE_Brightness.Value

How do i get the value to become a "number" rather than "text".
I get problems since i than have some conditional formating that do not

like
"text".


Thank you in advance

Melker





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Ranges values with properties problems

Assume GE_Brighness is a Textbox then

Range("A65536").End(xlUp).Offset(1, 6).Value = cdbl(GE_Brightness.Value)

--
Regards,
Tom Ogilvy

"Melker" wrote in message
...
Hi everyone,

I have a problem that i do not know how to solve.
I have two user forms that are "sending" a value to a place in an excel
sheet.
When the value is sent to the sheed a warning apears on the sheet.
It seems that the value has been sent to the sheet as text rather than a
number.

The two rows of code a

GE_Brightness.Value = Range("AA12:AA5000").Find(Select_entry,
LookIn:=xlValues).Offset(0, -20).Value

and

Range("A65536").End(xlUp).Offset(1, 6).Value = GE_Brightness.Value

How do i get the value to become a "number" rather than "text".
I get problems since i than have some conditional formating that do not

like
"text".


Thank you in advance

Melker





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
lookup on values between ranges The cat Excel Discussion (Misc queries) 8 April 22nd 09 03:00 PM
Problems with Ranges M&M Excel Discussion (Misc queries) 2 July 11th 07 11:51 PM
Named Ranges - Macro Problems Karl Burrows Excel Programming 2 April 4th 04 06:03 PM
Problems with VBA macro for creating named ranges - ARRRG! excelguru Excel Programming 3 February 29th 04 08:47 AM
Parsing values into ranges Andreww[_2_] Excel Programming 1 October 2nd 03 07:23 PM


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