Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default The Most Simple Question Ever

Hi, I'm not exatly new to VBasic, I've spent some time working with it in
Word (forms) but NEVER in Excel, and now it's time for me to get started
knowing how to work in Excel.

So the basic question is, how do I reference cells in vBasic (Excel?)

For example, how would I write:

If (cell A1) = "test" Then
(cell D24) = "It worked!"

This fundamental knowledge along with what I know from Word ought to be
enough to get me started on some projects...

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default The Most Simple Question Ever

XL cells are Range Objects. One way:

If Range("A1").Value = "test" Then _
Range("D24").Value = "It worked"

An alternative:

If Cells(1, 1).Text = "test" Then _
Cells(24, 4).Value = "It worked"

In article ,
Angyl wrote:

Hi, I'm not exatly new to VBasic, I've spent some time working with it in
Word (forms) but NEVER in Excel, and now it's time for me to get started
knowing how to work in Excel.

So the basic question is, how do I reference cells in vBasic (Excel?)

For example, how would I write:

If (cell A1) = "test" Then
(cell D24) = "It worked!"

This fundamental knowledge along with what I know from Word ought to be
enough to get me started on some projects...

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default The Most Simple Question Ever

This site provides some pretty basic information. It will at least help you
to understand some of the conventions and the language.

http://www.excel-vba.com/excel-vba-contents.htm

"Angyl" wrote:

Hi, I'm not exatly new to VBasic, I've spent some time working with it in
Word (forms) but NEVER in Excel, and now it's time for me to get started
knowing how to work in Excel.

So the basic question is, how do I reference cells in vBasic (Excel?)

For example, how would I write:

If (cell A1) = "test" Then
(cell D24) = "It worked!"

This fundamental knowledge along with what I know from Word ought to be
enough to get me started on some projects...

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default The Most Simple Question Ever

Thank you both!

"JLGWhiz" wrote:

This site provides some pretty basic information. It will at least help you
to understand some of the conventions and the language.

http://www.excel-vba.com/excel-vba-contents.htm

"Angyl" wrote:

Hi, I'm not exatly new to VBasic, I've spent some time working with it in
Word (forms) but NEVER in Excel, and now it's time for me to get started
knowing how to work in Excel.

So the basic question is, how do I reference cells in vBasic (Excel?)

For example, how would I write:

If (cell A1) = "test" Then
(cell D24) = "It worked!"

This fundamental knowledge along with what I know from Word ought to be
enough to get me started on some projects...

Thanks!

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
Simple Question?? doss04 Excel Discussion (Misc queries) 2 November 4th 08 07:25 AM
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple Question Brian Excel Discussion (Misc queries) 3 March 10th 06 10:12 AM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
simple question, hopefully a simple answer! Matt B Excel Programming 5 January 13th 04 08:43 PM


All times are GMT +1. The time now is 09:24 AM.

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

About Us

"It's about Microsoft Excel"