Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell value = 1 when open

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Cell value = 1 when open

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Cell value = 1 when open

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Cell value = 1 when open

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell value = 1 when open

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Cell value = 1 when open

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell value = 1 when open

hi bob,

got it worked out. Thanks...had it in the wrong module!!!!

Cheers!!!!!

--
Message posted from http://www.ExcelForum.com

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Cell value = 1 when open

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
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
Cell Box - one of the 4 cell lines is open - the side. How I fix ? MUTTMIND New Users to Excel 3 January 16th 09 09:59 AM
Open pdf from a cell rpick60 Excel Worksheet Functions 2 November 17th 07 05:09 PM
open to cell dpb0180 Excel Discussion (Misc queries) 0 March 29th 06 11:42 AM
Can't open doc. Too many different cell formats. Steven Excel Discussion (Misc queries) 3 March 25th 05 07:56 PM
Open file from Cell Brad Excel Programming 2 April 13th 04 04:56 PM


All times are GMT +1. The time now is 04:33 PM.

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"