Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Formula to equal Blank

How can I enter the forumula

="="

with a VB script

When I enter it the VB script automatically changes it to

" =" = " "

I want to enter Range("K2").FormulaR1C1 = "="= but I guess
this must be arranged in quotes. If I don't put them in I
get an error and when I do it splits it up

Any help please

Jacqui
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Formula to equal Blank

Jacqui,

Try the following

Range("K2").Formula = "=""="""

Whenever you need to include a quote (") in a string in VBA, use a
pair of quotes ("").

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Jacqui Hurst" wrote in message
...
How can I enter the forumula

="="

with a VB script

When I enter it the VB script automatically changes it to

" =" = " "

I want to enter Range("K2").FormulaR1C1 = "="= but I guess
this must be arranged in quotes. If I don't put them in I
get an error and when I do it splits it up

Any help please

Jacqui



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Formula to equal Blank

Worked it out.

I used the ascii character codes.

Sorry to waste anyones time.

Jacqui
-----Original Message-----
How can I enter the forumula

="="

with a VB script

When I enter it the VB script automatically changes it to

" =" = " "

I want to enter Range("K2").FormulaR1C1 = "="= but I

guess
this must be arranged in quotes. If I don't put them in I
get an error and when I do it splits it up

Any help please

Jacqui
.

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
Countif a corresponding value is not equal to zero or blank raphiel2063 Excel Worksheet Functions 1 April 4th 08 03:18 PM
Formula to find equal values with blank cells hilltop55 Excel Discussion (Misc queries) 5 March 22nd 07 09:12 PM
Why does blank text equal 0? [email protected] Excel Worksheet Functions 6 October 12th 06 03:47 AM
I don't want blank tp equal zero lovemark Excel Discussion (Misc queries) 3 May 19th 06 08:19 PM
Blank (empty) cell always equal to 0?? ulfah Excel Discussion (Misc queries) 3 February 1st 06 04:55 PM


All times are GMT +1. The time now is 09:46 PM.

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"