LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
KJ KJ is offline
external usenet poster
 
Posts: 43
Default Quick Macro help

Below is a macro I want to run when I open a workbook. I need to make a
change though however and I don't know how to language the code.
I only want to run the macro below if there is a value in cell F8. If F8 is
blank, then I want to end the macro, or just do nothing.
Thanks for any help.



Private Sub Workbook_Open()
'
' QuoteNumber Macro
'

'
Range("F8").Select
Selection.Copy
Range("D8").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("F8").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("B5").Select

End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question - Edit Macro Roger Excel Discussion (Misc queries) 5 February 27th 08 10:16 PM
Quick question about "filtering" macro johannes Excel Discussion (Misc queries) 2 January 1st 07 02:53 PM
I need quick help please! Sutemi Charts and Charting in Excel 1 June 8th 06 08:51 AM
Need Quick Macro Help! bxc2739 Excel Discussion (Misc queries) 2 April 24th 06 08:32 PM
Quick Macro question - How to delete two rows then skip one - and repeat David Smithz Excel Discussion (Misc queries) 3 March 3rd 06 02:58 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"