Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Need help on this macro

I need to add someone to this macro-it is working correctlky (Iam brand new
at writing them), but I need to add one more thing and cannot figure it out.
I need to tell it to stop when it gets to text. I cannot tell it to only
read numeric because after the text are more numbers that I do not want. So
how do I tell it to read the numeric, but stop when it gets to text in the
first sentence of this macro? Thanks!

Range("I" & Range("Restraints").Row).End(xlToLeft).Select
Sheets("RESTRAINTS").Range("B5").Value = ActiveCell.Value
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Need help on this macro

So are you saying that your data looks like this


1
22
32
bb
44

and you want to stop on bb

or are you saying you data looks like this

123rt
765u
789p456

and you want just the numbers up to rt then up to U and finally up to p?

Or are you saying that you data looks like this

3243
54
765y
655
4432

and you want to stop on 765y?


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Paula" wrote:

I need to add someone to this macro-it is working correctlky (Iam brand new
at writing them), but I need to add one more thing and cannot figure it out.
I need to tell it to stop when it gets to text. I cannot tell it to only
read numeric because after the text are more numbers that I do not want. So
how do I tell it to read the numeric, but stop when it gets to text in the
first sentence of this macro? Thanks!

Range("I" & Range("Restraints").Row).End(xlToLeft).Select
Sheets("RESTRAINTS").Range("B5").Value = ActiveCell.Value

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
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM


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