Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default erasing a character in the

i am using the "activecell.formula" function

when i assign it to a variable i see the "=" sign

how do i erase the = sign?

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default erasing a character in the

On Mar 25, 3:12*pm, dstiefe wrote:
i am using the "activecell.formula" function

when i assign it to a variable i see the "=" sign

how do i erase the = sign?

Thank you


When you pass it to a variable (if the variable is a string) just say
something like strFormula = Mid(Cstr(Activecell.Formula),
2,len(activecell.formula)-1) ... does that work?

Chris
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default erasing a character in the

Are you saying you want the "formula" stored in the variable, but without
its leading equal sign? If so, try this...

YourVariable = Mid(ActiveCell.Formula, 2)

Rick


"dstiefe" wrote in message
...
i am using the "activecell.formula" function

when i assign it to a variable i see the "=" sign

how do i erase the = sign?

Thank you


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default erasing a character in the

Dim myStr as string
mystr = mid(activecell.formula,2)

The worksheet function =mid() needs more parts (the length). VBA's Mid doesn't
need that.

dstiefe wrote:

i am using the "activecell.formula" function

when i assign it to a variable i see the "=" sign

how do i erase the = sign?

Thank you


--

Dave Peterson
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
Erasing a spreadsheet graham8889 Excel Discussion (Misc queries) 1 March 23rd 09 09:32 PM
erasing outside print area er Excel Discussion (Misc queries) 11 June 27th 07 12:30 PM
Erasing a Formula? Varan27 Excel Discussion (Misc queries) 2 March 28th 07 01:53 AM
Erasing a excel file Tim Excel Discussion (Misc queries) 1 February 28th 06 03:02 AM
erasing checkboxes marksuza[_5_] Excel Programming 1 December 18th 03 12:43 PM


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