Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 148
Default EXCEL 2007 acting up

j$ = "THIS MACRO WILL ERASE THE SECOND & THIRD SET OF DATA" + Chr$(13) +
Chr$(13)
Using EXCEL 2007, I get an error with the line above as a macro.
It does not recognize CHR$.
What am I doing wrong?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,726
Default EXCEL 2007 acting up

Not for me it didn't.

Check for MISSING references in ToolsReferences, uncheck them if there are
any.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pcor" wrote in message
...
j$ = "THIS MACRO WILL ERASE THE SECOND & THIRD SET OF DATA" + Chr$(13) +
Chr$(13)
Using EXCEL 2007, I get an error with the line above as a macro.
It does not recognize CHR$.
What am I doing wrong?
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,365
Default EXCEL 2007 acting up

Still acting up?
It works for me as you wrote it, using either + or & to do the
concatenation, and using either CHR(13) or CHR$(13) [or one of each, even].

I actually prefer & when concatenating strings, but the + should work as
well for you in this context.

"pcor" wrote:

j$ = "THIS MACRO WILL ERASE THE SECOND & THIRD SET OF DATA" + Chr$(13) +
Chr$(13)
Using EXCEL 2007, I get an error with the line above as a macro.
It does not recognize CHR$.
What am I doing wrong?
Thanks

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
Paste is acting up steven Excel Worksheet Functions 2 November 3rd 06 04:57 PM
Text box acting as a notifier? mr_chrisevans Excel Worksheet Functions 1 January 11th 06 12:17 PM
Cell acting funny... Roz Excel Discussion (Misc queries) 3 January 6th 06 04:01 PM
SUMPRODUCT Acting Quirky RichK Excel Worksheet Functions 2 September 19th 05 08:15 PM
Excel Files Acting Weird Anat Excel Discussion (Misc queries) 0 March 29th 05 03:07 AM


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