A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Check Excel Comment



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 26th 06, 12:34 AM posted to microsoft.public.outlook.program_vba
Bob Smith
external usenet poster
 
Posts: 34
Default Check Excel Comment

How do I check if a Cell has a comment field in VBA before I try and ADD a
comment?

e.g.

if Cells(A,1).Comment = "1"
Cells(A,1).Comment.Delete
Else
Cells(A,1).AddComment
Cells(A,1).Comment.Text("My Text")
  #2  
Old April 26th 06, 06:27 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Check Excel Comment

Am Tue, 25 Apr 2006 15:34:01 -0700 schrieb Bob Smith:

Bob, I´m sure you´d get an answer in an Excel related group, e.g. in:
microsoft.public.excel.programing

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


How do I check if a Cell has a comment field in VBA before I try and ADD a
comment?

e.g.

if Cells(A,1).Comment = "1"
Cells(A,1).Comment.Delete
Else
Cells(A,1).AddComment
Cells(A,1).Comment.Text("My Text")

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
comment eduardo vladimir Outlook Express 0 February 17th 06 06:08 AM
allo comment ca va [email protected] Outlook Express 1 February 10th 06 05:29 PM
William Kennedy comment Concerned reseller Outlook - Installation 1 January 24th 06 12:26 AM
Not Q. but comment on OE "server not working" Steve Cochran Outlook Express 1 January 10th 06 07:52 PM
Pls comment my VBS Tony WONG Outlook and VBA 1 January 10th 06 04:34 PM


All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.