Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear experts,
I have a procedure to insert a comment in some cells on a worksheet. Now, the comment text is made of a fixed text part and of a cell value from another workbook: Workbooks(a).Worksheets(1).Cells(i, z).AddComment "Price is " & Workbooks(External).Worksheets(1).Cells(f, g) My problem is that I would like to get a 2-decimal number from the external workbook for the comment(I am getting many more decimals!), without actually changing the cell in the external workbook. Can somebody please help me? Many thanks. Kind regards, Valeria |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Valeria,
you may try Workbooks(a).Worksheets(1).Cells(i, z).AddComment "Price is " & format(Workbooks(External).Worksheets(1).Cells(f, g), "0.00") (untested) Best regards Wolf wlamik<atgmx.net -----Original Message----- Dear experts, I have a procedure to insert a comment in some cells on a worksheet. Now, the comment text is made of a fixed text part and of a cell value from another workbook: Workbooks(a).Worksheets(1).Cells(i, z).AddComment "Price is " & Workbooks(External).Worksheets(1).Cells(f, g) My problem is that I would like to get a 2-decimal number from the external workbook for the comment(I am getting many more decimals!), without actually changing the cell in the external workbook. Can somebody please help me? Many thanks. Kind regards, Valeria . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It works perfectly,
thank you very much! Kind regards, Valeria -----Original Message----- Hi Valeria, you may try Workbooks(a).Worksheets(1).Cells(i, z).AddComment "Price is " & format(Workbooks(External).Worksheets(1).Cells(f, g), "0.00") (untested) Best regards Wolf wlamik<atgmx.net -----Original Message----- Dear experts, I have a procedure to insert a comment in some cells on a worksheet. Now, the comment text is made of a fixed text part and of a cell value from another workbook: Workbooks(a).Worksheets(1).Cells(i, z).AddComment "Price is " & Workbooks(External).Worksheets(1).Cells(f, g) My problem is that I would like to get a 2-decimal number from the external workbook for the comment(I am getting many more decimals!), without actually changing the cell in the external workbook. Can somebody please help me? Many thanks. Kind regards, Valeria . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional formatting--different formatting depending on cell con | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
expanding custom formatting without removing existing cell formatting? | Excel Worksheet Functions |