Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2007

Tip: Looking for answers? Try searching our database.

Replace cell values with Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C.S.Harris - 13 Jan 2007 18:20 GMT
I have a Macro that clears a form, and I want it to replace the cleared cells
with original information.
Here is a brief example of my code:

Range("P3,P4" _ ).Select
Selection.ClearContents

I want range P3, P4 to say "N/A" after it is cleared. Or better yet to just
replace the contents of P3,P4 with "N/A".

Thanks
Debra Dalgleish - 13 Jan 2007 18:46 GMT
This will replace the cell contents, on Sheet1, with "N/A"

Worksheets("Sheet1").Range("P3:P4").Value = "N/A"

> I have a Macro that clears a form, and I want it to replace the cleared cells
> with original information.
[quoted text clipped - 7 lines]
>
> Thanks

Signature

Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

C.S.Harris - 13 Jan 2007 23:16 GMT
Thank you, why was that so hard for me to find anywhere else?

> This will replace the cell contents, on Sheet1, with "N/A"
>
[quoted text clipped - 11 lines]
> >
> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.