Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default need macro to output quatation mark...


seems like a simple thing to do but I need a macro to output some actua
VBA code to an excel spread sheet....everything is going fine....but
dont know how to make is output a quatation mark.

an example of what I want but then....is not the right code is:

ActiveCell.value = "With ActiveSheet.Range("a:a")"

but it gives me an expected end of code error at the first "a"

I also have another cell which has the same problem but it has
varible in it.

example:

Activecell.value = "Set FoundCell = .Find(what:=" & AktiveCell & ", _

but of course i need quotes around the varible....please help!!

seems easy.....i just don't know what to do....

/Craig Hanse

--
cdd
-----------------------------------------------------------------------
cdde's Profile: http://www.excelforum.com/member.php...fo&userid=1553
View this thread: http://www.excelforum.com/showthread.php?threadid=27644

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default need macro to output quatation mark...

I guess you are looking for this:

ActiveCell.Value = "With ActiveSheet.Range(""a:a"")"

Regards,
KL

"cdde" wrote in message
...

seems like a simple thing to do but I need a macro to output some actual
VBA code to an excel spread sheet....everything is going fine....but i
dont know how to make is output a quatation mark.

an example of what I want but then....is not the right code is:

ActiveCell.value = "With ActiveSheet.Range("a:a")"

but it gives me an expected end of code error at the first "a"

I also have another cell which has the same problem but it has a
varible in it.

example:

Activecell.value = "Set FoundCell = .Find(what:=" & AktiveCell & ", _

but of course i need quotes around the varible....please help!!

seems easy.....i just don't know what to do....

/Craig Hansen


--
cdde
------------------------------------------------------------------------
cdde's Profile:
http://www.excelforum.com/member.php...o&userid=15532
View this thread: http://www.excelforum.com/showthread...hreadid=276449



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
Foot mark aka single quote mark? STING Excel Worksheet Functions 3 June 19th 08 08:25 PM
How can I add active tick mark/check mark boxes in excel? gerberelli Excel Discussion (Misc queries) 2 May 3rd 08 05:16 PM
Looping Macro to Find and Mark Big Tony New Users to Excel 8 January 26th 05 09:07 PM
Need help with report output....macro??? shane476 Excel Programming 1 July 29th 04 10:17 PM
Macro to mark double numbers in another colour. Stevie[_2_] Excel Programming 4 February 11th 04 08:37 PM


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