MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 8th, 2002, 02:15 PM   #1
Mayk
New Member
 
Join Date: Mar 2002
Location: rejdus@hotmail.com
Posts: 18
Default

I have an invoice spreadsheet.
There is a column to enter data,invoice no.,type,contractor etc.
There is also column with heading WorkDoneAt andnext column to it is named WorkDetails.
What i am looking for is that instead of typing what job was done in a rows like
1.Construct structural opening and other works as agreed.
2.Construct structural opening and other works as agreed.etc etc.
I decided too put that into comment and the see it when required so it will take less place.
What i need now is to create a macro with a button attached to it which will take me through tthat process with another invoices below.
I am not sure if this is possible,if yes could any1 help me..
Mayk is offline   Reply With Quote
Old Apr 8th, 2002, 02:38 PM   #2
Al Chara
MrExcel MVP
 
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
Default

Sure it is possible, there have been lots of comments questions on this board. Try the following link (there are more):
http://www.mrexcel.com/board/viewtop...c=4122&forum=2
__________________
Kind regards,

Al Chara
Al Chara is offline   Reply With Quote
Old Apr 8th, 2002, 02:40 PM   #3
Damon Ostrander
MrExcel MVP
 
Damon Ostrander's Avatar
 
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
Default

Hi Mayk,

It is quite easy to create cell comments in a macro. Unfortunately I don't understand your question well enough to get specific in how to do this. I'm not sure whether you want to have a button which pops up a userform that asks you to enter or select from a list of possible job descriptions, which it would then put into a comment. Or do you want to have a macro that takes job description columns from past worksheets and convert them into a comments format rather than a cell format for the job descriptions?
__________________
Keep Excelling.

Damon

VBAexpert Excel Consulting
(My other life: http://damonostrander.com )
Damon Ostrander is offline   Reply With Quote
Old Apr 8th, 2002, 03:08 PM   #4
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

Hi
Ill be blunt ill never remember my private message and email is so heavy i track less work sorry, email me on my profile i have sone code you can attach to a bitton and it will add comment ready to type message in and so on, in the actice cell vey cool ...

BUT please can i ask remind me to post on this feed so ever one can see and use my code, ill forget.

Chris D sorry to ask you know how it is for me, we can hardley speak on the phone these days, BUG me and ill send the code and get it on this feed betweeen us its simple stuff i wrote.. others will love it its sweet..


Cheersnchris ill forget or never get it sorted, i feel others can use this one a big thats for everone.

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Apr 8th, 2002, 03:10 PM   #5
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

Chris

To ...co.uk please noy Jack acct ive 19 today to sort as you know i answer everone who emails me regardless... its all about help..


__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Apr 9th, 2002, 03:18 PM   #6
Mayk
New Member
 
Join Date: Mar 2002
Location: rejdus@hotmail.com
Posts: 18
Default

DAMON


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Hi Mayk,

It is quite easy to create cell comments in a macro. Unfortunately I don't understand your question well enough to get specific in how to do this. I'm not sure whether you want to have a button which pops up a userform that asks you to enter or select from a list of possible job descriptions, which it would then put into a comment. Or do you want to have a macro that takes job description columns from past worksheets and convert them into a comments format rather than a cell format for the job descriptions?

_________________

Keep Excelling.

Damon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damon wot i need is a macro code which i could attach to a button which would do following work.
after i type all the details in my invoice like DATA, CONTRACTOR,TYPE OF CONTRACTOR,TOTAL,TAX,TOTAL-TAX,ETC
I have last column named JOBDETAILS. Instead of typing the details on the worksheet i decided to put it in the comments box.
However this is meant to be a programme so user can make other comment box available in the easiest way as possible. And wot ui need is macro which would open automatically the comment box.
eg. I4 is a column with heading started JobDetails. Below are empty cells but when u point mouse at I5 it will show the details of the job in a comment box. i wont excel to open that automatically to enter new details in new invoices.
hope sound better.
sorry if too long.
if cant help dat is okay.
thank u for interest being show anyway
Mayk is offline   Reply With Quote
Old Apr 11th, 2002, 05:33 PM   #7
Damon Ostrander
MrExcel MVP
 
Damon Ostrander's Avatar
 
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
Default

Hi again MayK,

Here is some code that I think does what you want. This code is set up to work only with cells in column 2 (column B), but it should be obvious how to change that to work in the column you are interested in. It is actually quite easy to restrict it to any particular range or ranges of cells.

Just put this code into the worksheet's event code module. To do this, right-click on the worksheet's tab, select View Code, and paste the code into the VBE code pane that appears.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Static LastComment As Comment
If Not LastComment Is Nothing Then LastComment.Visible = False
If Target.Column = 2 Then
On Error GoTo NoComment
Target.Comment.Visible = True
Set LastComment = Target.Comment
Application.SendKeys "%IE~"
Exit Sub
NoComment:
'add comment and open for editing
Target.AddComment.Visible = True
Set LastComment = Target.Comment
Application.SendKeys "%IE~"
End If
End Sub

__________________
Keep Excelling.

Damon

VBAexpert Excel Consulting
(My other life: http://damonostrander.com )
Damon Ostrander is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes