Copying to clip board

eddysmithjr

New Member
Joined
Apr 12, 2011
Messages
16
Good morning fellow Excellers!!

If there any function, formula, or macro I can assign to a button in Excel that will copy the contents (especially the result of a formula) to the "clipboard" so it can be pasted in another window, program, etc etc?

Example

A:1 will read "Sent Message to Customer" if B1=Y, I have already set up the formula for A:1, so now, when A:1 does equal "Sent Message to Customer," I want an easy way for my client to have that copied to their clipboard so all they have to do is paste it somewhere else.


Any help is once again greatly appreciated!
 
Thanks for the help!

Last question, I have a macro for another work book, and I want to know how I can adapt it for this book.

Basically, if a cell in column E equals "0" (which I set up as the other function of my IF formula) I want the row that the cell is on to disappear.

The Macro I have is:

Sub foo()
Dim c As Range
Cells.EntireRow.Hidden = False
For Each c In Range([A1], Cells(Rows.Count, "A").End(xlUp))
If c.Value = 0 Then c.EntireRow.Hidden = True
Next c
End Sub


Can anyone show me how to adapt it for this Workbook?
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Calculate()
Dim LR As Long, i As Long
LR = Range("E" & Rows.Count).End(xlUp).Row
For i = 1 To LR
    Rows(i).Hidden = Range("E" & i),Value=1
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top