Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Cells(col,row) keep moving to lower case and I can not ref. a cells in a differnet sheet

Hi


I a writing VBA in Excel and I can not get the following line to run:

Sheets("Sheet1").cells(Row, Col).Value = Num


The "cells" part turns from "Cells" to "cells" when I hit return and I guess
it treats it like an array not a cell location.

Can anyone help clear this up.

Cheers

Wayne


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Cells(col,row) keep moving to lower case and I can not ref. a cells in a differnet sheet

Do you have "cells" defined somewhere else? This generally happens when you
(mis)use a reserved word elsewhere in the project.

--

Vasant

"WayneL" wrote in message
...
Hi


I a writing VBA in Excel and I can not get the following line to run:

Sheets("Sheet1").cells(Row, Col).Value = Num


The "cells" part turns from "Cells" to "cells" when I hit return and I

guess
it treats it like an array not a cell location.

Can anyone help clear this up.

Cheers

Wayne




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Cells(col,row) keep moving to lower case and I can not ref. a cells in a differnet sheet

I just tested this on xl2002

Sub ddd()
num = 12345 '"dd"
Row = 1
col = 5
Sheets("Sheet1").Cells(Row, col).Value = num
End Sub

--
Don Guillett
SalesAid Software

"WayneL" wrote in message
...
Hi


I a writing VBA in Excel and I can not get the following line to run:

Sheets("Sheet1").cells(Row, Col).Value = Num


The "cells" part turns from "Cells" to "cells" when I hit return and I

guess
it treats it like an array not a cell location.

Can anyone help clear this up.

Cheers

Wayne




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
Linking cells from differnet worksheets.......How? jefferson New Users to Excel 3 June 18th 07 03:02 AM
Change the text from lower case to upper case in an Excel work boo dave01968 Excel Discussion (Misc queries) 2 December 9th 05 09:09 AM
How do I create upper/lower case letters in cells? boz130 Excel Discussion (Misc queries) 1 September 14th 05 06:23 PM
Counting cells that meet 2 differnet criteria USChad Excel Worksheet Functions 1 September 7th 05 07:58 PM
HOW DO YOU CHANGE AN ENTIRE SPREAD SHEET FROM LOWER CASE TO UPPER DRPATRICK2 Excel Discussion (Misc queries) 2 August 24th 05 08:51 PM


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