Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 01-24-2018, 01:10 PM
JohnnySTI JohnnySTI is offline Data from a specific row in a spread sheet into a form Windows 10 Data from a specific row in a spread sheet into a form Office 2010 64bit
Novice
Data from a specific row in a spread sheet into a form
 
Join Date: Jan 2018
Posts: 7
JohnnySTI is on a distinguished road
Default

Okay I got it...

Dim lastrow as Long
lastrow = Sheet3.Cells(Rows.Count, 3).End(xlUp).Offset(1, 0).Row
MsgBox lastrow
' Message box shows me the first empty row number cell in the ID column, which is good I got something to work with...
then
Cells(lastrow, 3).Value = lastrow - 4
' the (- 4) is the offset of where my data started, meaning my data began being entered on row 5 and my ID numbers began on row 5 starting with 0001 so when the lastrow code above returned me the value of the next empty row I subtracted 4 form lastrow value which give me my next ID number in the ID cell where I needed it to be


I'm sure grateful for your help and direction...
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Data from a specific row in a spread sheet into a form Simple Spread Sheet TThomas Excel 1 04-07-2016 09:01 PM
extract specific pivot table data to a new sheet theexpat Excel Programming 0 02-18-2016 10:08 AM
Data from a specific row in a spread sheet into a form Using combobox to pass data from an Excel spread sheet to text boxes on userform Stewie840 Word VBA 14 12-17-2015 10:13 PM
changing the spread sheet location on embeded pie chart otuatail PowerPoint 1 03-04-2014 07:20 AM
Condensing a spread sheet hawkeyefxr Excel 4 08-22-2012 05:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft