Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi again all,
Am having trouble with the following. Would like to have cell d13 o sheet FEDEX calculator value = 1 when opened. Any ideas??? Cheers!!!!! Private Sub Workbook_Open() Worksheets("FEDEX calculator").Range("D13").Value = 1 End Su -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Seems okay, what happens?
Any other code, such as worksheet event code, tracking the same cell? -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "gavmer " wrote in message ... Hi again all, Am having trouble with the following. Would like to have cell d13 on sheet FEDEX calculator value = 1 when opened. Any ideas??? Cheers!!!!! Private Sub Workbook_Open() Worksheets("FEDEX calculator").Range("D13").Value = 1 End Sub --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bob
Basically whenever my workbook opens or has its contents cleared, i would like a default value of 1 in cell D13. Possible?? Thanks Bob!! ----- Bob Phillips wrote: ---- Seems okay, what happens Any other code, such as worksheet event code, tracking the same cell -- HT Bob Phillip ... looking out across Poole Harbour to the Purbeck (remove nothere from the email address if mailing direct "gavmer " wrote in messag .. Hi again all Am having trouble with the following. Would like to have cell d13 o sheet FEDEX calculator value = 1 when opened Any ideas?? Cheers!!!! Private Sub Workbook_Open( Worksheets("FEDEX calculator").Range("D13").Value = End Su -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, and your code (seems to) does just that, on a workbook open. The code
needs to go in the ThisWorkbook code module. Where have you put it? -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "gavmer" wrote in message ... Hi Bob, Basically whenever my workbook opens or has its contents cleared, i would like a default value of 1 in cell D13. Possible??? Thanks Bob!!! ----- Bob Phillips wrote: ----- Seems okay, what happens? Any other code, such as worksheet event code, tracking the same cell? -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "gavmer " wrote in message ... Hi again all, Am having trouble with the following. Would like to have cell d13 on sheet FEDEX calculator value = 1 when opened. Any ideas??? Cheers!!!!! Private Sub Workbook_Open() Worksheets("FEDEX calculator").Range("D13").Value = 1 End Sub --- Message posted from http://www.ExcelForum.com/ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bob,
It is in the code module when the book is first opened. A few othe codes are there also (click events). ??? -- Message posted from http://www.ExcelForum.com |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gav,
Does the code module mean ThisWorkbook? Workbook events must be in ThisWorkbook, otherwise they are simply ignored. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "gavmer " wrote in message ... Hi Bob, It is in the code module when the book is first opened. A few other codes are there also (click events). ???? --- Message posted from http://www.ExcelForum.com/ |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi bob,
got it worked out. Thanks...had it in the wrong module!!!! Cheers!!!!! -- Message posted from http://www.ExcelForum.com |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good, a common mistake,
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "gavmer " wrote in message ... hi bob, got it worked out. Thanks...had it in the wrong module!!!! Cheers!!!!!! --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell Box - one of the 4 cell lines is open - the side. How I fix ? | New Users to Excel | |||
Open pdf from a cell | Excel Worksheet Functions | |||
open to cell | Excel Discussion (Misc queries) | |||
Can't open doc. Too many different cell formats. | Excel Discussion (Misc queries) | |||
Open file from Cell | Excel Programming |