Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Trying to set cell value using macro

Hello,

I am trying to set the value of a cell to 1 using the Auto_Open Macro.
the problem is that the cell i am trying to set the value to is a
list. The cell is set as a list box using the data - validation
-allow : list method. I am not sure how to go about setting the value
of this cell to 1 everytime the excel spreadsheet is opened.

Any help is greatly appreciated.

Thanks
Tushar
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Trying to set cell value using macro

Hi
why not simply use

worksheets("sheet1").range("A1").value=1


--
Regards
Frank Kabel
Frankfurt, Germany


Tushar wrote:
Hello,

I am trying to set the value of a cell to 1 using the Auto_Open

Macro.
the problem is that the cell i am trying to set the value to is a
list. The cell is set as a list box using the data - validation
-allow : list method. I am not sure how to go about setting the

value
of this cell to 1 everytime the excel spreadsheet is opened.

Any help is greatly appreciated.

Thanks
Tushar


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Trying to set cell value using macro

Thanks Frank. That worked like a charm man

"Frank Kabel" wrote in message ...
Hi
why not simply use

worksheets("sheet1").range("A1").value=1


--
Regards
Frank Kabel
Frankfurt, Germany


Tushar wrote:
Hello,

I am trying to set the value of a cell to 1 using the Auto_Open

Macro.
the problem is that the cell i am trying to set the value to is a
list. The cell is set as a list box using the data - validation
-allow : list method. I am not sure how to go about setting the

value
of this cell to 1 everytime the excel spreadsheet is opened.

Any help is greatly appreciated.

Thanks
Tushar

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
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Excel Worksheet Functions 6 December 20th 08 05:02 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
macro to run a separate macro dependent on value in cell scottwilsonx[_13_] Excel Programming 3 July 26th 04 02:30 PM
Please help! Macro to change cell contents based on cell to the left Jennifer[_8_] Excel Programming 7 March 4th 04 01:06 AM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


All times are GMT +1. The time now is 04:10 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"