Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Transpond text to public statement

Hi
In follwing code myGate = CS and the statement nCs =39445. In the Find
method I want that myDayNr = 39445, not "nCS". How to do?

Public nCS As Long
Sub X()
'----
myDayNr = "n" & myGate
'----

Cells.Find(myDayNr, After:=ActiveCell, LookIn:=xlValues,
LookAt:=xlWhole, _
SearchOrder:=xlRow, SearchDirection:=xlNext).Activate
End Sub
--
Officebyggaren
Kent Älmegran
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Transpond text to public statement

I assume nCS is a named range referring to one cell? try it this way:

Cells.Find(Range(myDayNr).Value, After:=ActiveCell, LookIn:=xlValues,
LookAt:=xlWhole, _
SearchOrder:=xlRow, SearchDirection:=xlNext).Activate



--
Hope that helps.

Vergel Adriano


"KentAE" wrote:

Hi
In follwing code myGate = CS and the statement nCs =39445. In the Find
method I want that myDayNr = 39445, not "nCS". How to do?

Public nCS As Long
Sub X()
'----
myDayNr = "n" & myGate
'----

Cells.Find(myDayNr, After:=ActiveCell, LookIn:=xlValues,
LookAt:=xlWhole, _
SearchOrder:=xlRow, SearchDirection:=xlNext).Activate
End Sub
--
Officebyggaren
Kent Älmegran

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Transpond text to public statement

No, nCS is a Public statement and the value is 39455 (jan 8 2008) and is
piced up from an userform. Now I need to find ut where in tha active sheet I
can find 39455.
Thank´s in acvance for all help!
--
Officebyggaren
Kent Älmegran


"Vergel Adriano" skrev:

I assume nCS is a named range referring to one cell? try it this way:

Cells.Find(Range(myDayNr).Value, After:=ActiveCell, LookIn:=xlValues,
LookAt:=xlWhole, _
SearchOrder:=xlRow, SearchDirection:=xlNext).Activate



--
Hope that helps.

Vergel Adriano


"KentAE" wrote:

Hi
In follwing code myGate = CS and the statement nCs =39445. In the Find
method I want that myDayNr = 39445, not "nCS". How to do?

Public nCS As Long
Sub X()
'----
myDayNr = "n" & myGate
'----

Cells.Find(myDayNr, After:=ActiveCell, LookIn:=xlValues,
LookAt:=xlWhole, _
SearchOrder:=xlRow, SearchDirection:=xlNext).Activate
End Sub
--
Officebyggaren
Kent Älmegran

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
IF statement and text bob Excel Worksheet Functions 5 November 7th 09 06:40 AM
Using text in an IF statement? The Hun New Users to Excel 7 June 14th 08 03:32 AM
Transpond one very long column to several columns of specified len Magnus Excel Worksheet Functions 5 May 21st 08 10:46 PM
IF Statement with text JustinD[_2_] Excel Worksheet Functions 5 November 20th 07 09:37 AM
if statement with text jerry Excel Discussion (Misc queries) 2 June 24th 05 01:21 AM


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